• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Doc kind from extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Doc kind from extension


  • Subject: Doc kind from extension
  • From: Micha Fuhrmann <email@hidden>
  • Date: Thu, 11 Jun 2009 15:50:31 +0200

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?
_______________________________________________

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


  • Follow-Ups:
    • Re: Doc kind from extension
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: program crashes because of a variable declaration
  • Next by Date: NSString becoming invalid
  • Previous by thread: Re: program crashes because of a variable declaration
  • Next by thread: Re: Doc kind from extension
  • Index(es):
    • Date
    • Thread