Re: Finding out my document's extension
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