My Leopard-only application needs to be able to import any image supported by CGImageSource, so I create an NSOpenPanel and pass the array obtained from CGImageSourceCopyTypeIdentifiers() to runModalForTypes. This makes the "Media > Photos" sidebar to show up automatically in the Open panel, which is great.

However, seemingly random pictures in the iPhoto section of this Media Browser are greyed out. I tracked it down, and the problem is that when iPhoto creates an alias to an original file, this is not automatically resolved. (My OpenPanel does leave -resolvesAliases set to YES.) So the type of these random pictures is com.apple.alias-file instead of public.jpeg or any other image format, and the media panel doesn't let me choose these original files even though their aliases would resolve to supported types.

Shouldn't these aliases be resolved before type checking, so that the CGImageSource type identifiers can be used in an open panel without needing custom delegate filtering?

thanks,
-natevw

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to