• 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
Excluding native file type from export sheet.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Excluding native file type from saveDocumentTo: accessory view. (From: Joshua Scott Emmons <email@hidden>)

  • Prev by Date: Re: Preferences not being written out/saved?
  • Next by Date: Re: NSThread in Debug mode loading code issue
  • Previous by thread: Re: saveDocument newbie question
  • Next by thread: How to make a dictionary for Dictionary.app
  • Index(es):
    • Date
    • Thread