• 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: NSSavePanel and file formats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSavePanel and file formats


  • Subject: Re: NSSavePanel and file formats
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Mon, 20 Apr 2009 07:08:52 -0700


On Apr 20, 2009, at 12:51 AM, Quincey Morris wrote:

On Apr 20, 2009, at 00:16, Graham Cox wrote:

The save dialog shows the format pop-up automatically if you declare in your info.pList that you export multiple types. Presumably it also takes care of everything else too - you just need to set up the pList and respond to the type passed to your document's -daatOfType:error: method which will depend on what the user chose.

Ah, I didn't know that. If I did, I would have mentioned that this is actually for an Export As... dialog, so that the file types are by definition not in info.plist.

Can you use NSExportableTypes or NSExportableAs in Info.plist? It's been a long time since I had to deal with that, but ISTR it will handle the types popup for you (and hopefully the extension as well).



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >NSSavePanel and file formats (From: Quincey Morris <email@hidden>)
 >Re: NSSavePanel and file formats (From: Graham Cox <email@hidden>)
 >Re: NSSavePanel and file formats (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Is there a way where we can avoid the machine from going to sleep...?
  • Next by Date: Re: how to get the windows ‘s coordinate
  • Previous by thread: Re: NSSavePanel and file formats
  • Next by thread: Re: Opening file with C++ iostream from application bundle
  • Index(es):
    • Date
    • Thread