Excluding native file type from saveDocumentTo: accessory view.
Excluding native file type from saveDocumentTo: accessory view.
- Subject: Excluding native file type from saveDocumentTo: accessory view.
- From: Joshua Scott Emmons <email@hidden>
- Date: Sat, 17 Jun 2006 22:12:46 -0500
Greetings.
I'm setting up an "Export As…" menu in my application. I've wired it
to First Responder's saveDocumentTo:. I've added a two file types
(html and rtf) to my info.plist, and put references to both those
type in NSExportableAs in my native file format.
When I select "Export As…" from my menu, a standard save sheet pops
out and has a list of formats in a pop-up button as its accessory
view. So far so good.
HOWEVER, in addition to the types listed in NSExportableAs, the
NATIVE file format is also displayed in the popup. That's just wrong.
If I wanted to write the native format, I'd use Save or Save As…, not
Export As…. Why is the native format included in this list? How do I
exclude it?
I've found many cases of this question being asked on the archives[1]
[2], but it's never been answered. Is there really no solution for
this (other that rolling a custom accessory view)!?
[1]: http://lists.apple.com/archives/cocoa-dev/2003/Sep/msg00071.html
[2]: http://lists.apple.com/archives/cocoa-dev/2004/Dec/msg00359.html
Many thanks!!
-Joshua Emmons _______________________________________________
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