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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -