On 12/03/2009, at 9:48 PM, Mic Pringle wrote:
Hi, Is there a way (programmatically) that I can determine which document types a particular application can open/view etc without resorting to parsing it's info.plist file ?
Doesn't look like there is - NSDocumentController (where you might expect a method for this) doesn't have anything - it apparently reads the info.plist as necessary.
But when you say "parse", you're aware that you can do: NSDictionary* info = [[NSBundle mainBundle] infoDictionary]; and then simply request the types: NSArray* docTypes = [info objectForKey:@"CFBundleDocumentTypes"]; Why would you want to avoid this when it's so straightforward? --Graham _______________________________________________ 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 arch...@mail-archive.com