Excluding native file type from export sheet.
Excluding native file type from export sheet.
- Subject: Excluding native file type from export sheet.
- From: Joshua Scott Emmons <email@hidden>
- Date: Mon, 19 Jun 2006 19:59:37 -0500
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?
This question has been asked a few times[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