• 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 saveDocumentTo: accessory view.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Excluding native file type from export sheet.
      • From: Joshua Scott Emmons <email@hidden>
    • saveDocument newbie question
      • From: Neto <email@hidden>
  • Prev by Date: Re: Launching an App, within an app.. :)
  • Next by Date: Re: Print a NSTextView on two (or more) columns
  • Previous by thread: Fractional positions for drawing images on 10.4
  • Next by thread: saveDocument newbie question
  • Index(es):
    • Date
    • Thread