Re: Fwd: UTIs and readFromURL/writeToURL
Re: Fwd: UTIs and readFromURL/writeToURL
- Subject: Re: Fwd: UTIs and readFromURL/writeToURL
- From: "Sean McBride" <email@hidden>
- Date: Fri, 16 Oct 2009 21:12:00 -0500
- Organization: Rogue Research Inc.
On 10/10/09 11:15 AM, Sander Stoks said:
>Suppose I have an application which can read and write images (using
>Image I/O). To make this known to the OS, I have to add stuff to my
>Info.plist, and wanted to do this using UTIs as I understand that's
>the new standard. However, I have a few problems here.
>
>First, do I really have to add all types to my Info.plist file? If
>the OS gets an update which adds a new file type to Image I/O, I have
>to update my Info.plist?
Since no one else replied... I'm pretty sure the answers are: yes and yes. :(
>I copied the relevant part of Preview.app, so I now have a nice list
>of two dozen of supported UTIs in my plist.
Preview.app is having to do the same thing you do, which is a good
indication that there is no better way. I'd file a bug. Note that with
NSOpenPanel, you can do better, using NSImage's imageTypes method.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden