osx - Iterate through photo library on OS X using MLMediaLibrary -
i need iterate through albums/photos photos app, name,id, directory, thumbnail url.
this question has been asked @ iterate through photo library on os x?
but still cannot work. based on code toohtik @ programmatic access photos library on mac os x: photokit / photos framework mac
i getting compile error
forkeypath:@keypath(album, mediaobjects)
unexpected @ in code. if tell me keypath is, or need fix it.
i have found way make keypath thing, in project https://github.com/jspahrsummers/libextobjc downloaded , took 2 files : extkeypathcoding.h , metamacros.h , included them in project. turning @keypath macro. , seems working.
Comments
Post a Comment