Re: Getting file type from Save dlog
Re: Getting file type from Save dlog
- Subject: Re: Getting file type from Save dlog
- From: Steve Mills <email@hidden>
- Date: Wed, 30 Jan 2013 16:14:15 -0600
On Jan 30, 2013, at 15:47:11, Kevin Perry <email@hidden>
wrote:
> I admit I’m a little confused by your claims. All of NSDocument should definitely be able to use UTIs in every modern API that refers to types.
It seems to be the default for it to work with type names instead of UTIs. After your message I experimented with giving UTIs to writableTypesForSaveOperation, and then the popup was populated with the type name strings from the UTExportedTypeDeclarations section of the Info.plist rather than from the CFBundleDocumentTypes section. Both lists contain identifiers for all the same types, but the human readable type names are slightly different. It was the type names from the CFBundleDocumentTypes section that were appearing in the popup before I overrode writableTypesForSaveOperation, and it was those type names that it returned to writeToURL.
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
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