On Jun 11, 2009, at 10:47 AM, Micha Fuhrmann wrote:
Unfortunately all I can feed it with is the file extension....
Any other idea? Isn't there a mapping plist between extension and
Kind that exists somewhere?
I missed the earlier part of this discussion, but does
LSCopyKindStringForTypeInfo suit your needs?
Cheers,
Ken
On 11 juin 09, at 16:09, Graham Cox wrote:
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 (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/ken%40codeweavers.com
This email sent to k...@codeweavers.com
_______________________________________________
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