Re: NSSavePanel and file formats
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