• 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: Getting file type from Save dlog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting file type from Save dlog
      • From: Steve Mills <email@hidden>
References: 
 >Getting file type from Save dlog (From: Steve Mills <email@hidden>)
 >Re: Getting file type from Save dlog (From: Kevin Perry <email@hidden>)
 >Re: Getting file type from Save dlog (From: Steve Mills <email@hidden>)
 >Re: Getting file type from Save dlog (From: Kevin Perry <email@hidden>)
 >Re: Getting file type from Save dlog (From: Steve Mills <email@hidden>)
 >Re: Getting file type from Save dlog (From: Kevin Perry <email@hidden>)

  • Prev by Date: Re: Sandbox Clarification
  • Next by Date: Re: Sandbox Clarification
  • Previous by thread: Re: Getting file type from Save dlog
  • Next by thread: Re: Getting file type from Save dlog
  • Index(es):
    • Date
    • Thread