I want my users to import image files from their “Photos.app library”. So, I implemented to open files via file dialog like:
GetOpenFolderItem("jpg;jpeg")
Dialog can be opened, but when I click “Photos” of Media section on the sidebar, nothing is shown.
Photos in Photos.app library must be appeared here, I think.
It works fine on Yosemite (with iPhoto.app), but seems not to work on El Capitan (Photos.app).
Why does this happen?
What should I do to avoid this?
[quote=267143:@Sascha S]Sam…
Constantly bashing El Cap. ;)[/quote]
I wouldn’t have to if things that used to work continued to work. At least once a week, I find something that’s now broken. I’ve given up filing bug reports as none have gotten any traction since El Capitan GM.
I can understand you, but i am much more productive on OS X then on Win. I think it’s still more reliable.
And while the OS is developing faster with each year, i expect more issues in new releases. And i like the challenge of working around such quirks. But OTOH i do not make a living with Xojo Apps.
[quote=267140:@Toru KOBAYASHI]> Michel
I tried it, but nothing is changed.[/quote]
Anyway, this is the proper way to set a mime type. What you used is not a mime type.
About your problem : have you verified the folder actually contains jpg files ? Or pictures for that matter ? Because of a bug, the filter is actually not honored, and the dialog will permit picking png, gif or anything else.
Here under 10.11.5 the folder at /Users/Mitch/Library/Containers/com.apple.Photos/Data/Library/Caches/Photos contains only two folders and no pictures :
ThumbnailsGenerators
Mondrian
I did verify that Photos contains pictures. They may simply be hidden somewhere else. Maybe in an archive of sorts.
There is another Photos folder on the system, in
/Library/Application Support/Apple
But it contains no Photos either. What is in the Photos folder you show on your screen grab ?