Re: Doc kind from extension
Re: Doc kind from extension
- Subject: Re: Doc kind from extension
- From: Graham Cox <email@hidden>
- Date: Fri, 12 Jun 2009 00:09:38 +1000
On 11/06/2009, at 11:50 PM, Micha Fuhrmann wrote:
Anyone knows how to get the system doc kind from a given extension.
Not from a file, or a file path for that matter, but just from an
extension. Like giving "pdf" and receiving "Portable Document Format
(PDF). I've tried
NSString * theTest = [[NSDocumentController
sharedDocumentController] typeFromFileExtension:@"pdf"];
But I get nil.
Any idea?
[NSDocumentController displayNameForType:] ?
--Graham
_______________________________________________
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