• 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
Re: Finding out my document's extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding out my document's extension


  • Subject: Re: Finding out my document's extension
  • From: Glen Simmons <email@hidden>
  • Date: Wed, 19 Jan 2005 12:29:00 -0600

Doh! Forgot about NSDocumentController.

Thanks,
Glen

On 19 Jan, 2005, at 12:25 PM, Clark Cox wrote:

From NSDocumentController.h:
- (NSArray *)fileExtensionsFromType:(NSString *)documentTypeName;

(Remember that there can be multiple extensions for the same document type)

On Wed, 19 Jan 2005 12:18:10 -0600, Glen Simmons
<email@hidden> wrote:
How can I find out the extension of one of my document types
programmatically? Sending -readableTypes to the NSDocument subclass
that handles that type gives back the CFBundleTypeName, not the
extension. Obviously, I can work my way through the info dictionary,
but that seems awfully hacky. The system has to know the extension to
be able to add it when saving, so how do I get it to tell me?

Thanks,
Glen

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden



-- Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Finding out my document's extension (From: Glen Simmons <email@hidden>)
 >Re: Finding out my document's extension (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: Finding out my document's extension
  • Next by Date: Re: Defining Accessors in a Custom Palette for a NSArray for Cocoa Bindings
  • Previous by thread: Re: Finding out my document's extension
  • Next by thread: [SOLVED]RE: Thread and sleep
  • Index(es):
    • Date
    • Thread