When using NSOpenPanel to open files, I try to allow users to select only iPhoto libraries. For example, the Aperture library has the extension .aplibrary. However, the iPhoto library does not have an extension.
For your information, the Aperture and iPhoto libraries are packages that will be completely correct. Aperture packages have the .aplibrary extension, while iPhoto packages do not seem to have the extension.
How can I let the user select iPhoto packages? Due to the lack of an extension, I cannot use "setAllowedFileTypes". However, iPhoto seems to be able to make a difference, but I do not see how this is done in this case.
source
share