• 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
Re: Setting a documents file type during save as=8 5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting a documents file type during save as=8 5


  • Subject: Re: Setting a documents file type during save as=8 5
  • From: mmalcolm crawford <email@hidden>
  • Date: Tue, 13 Jan 2004 13:42:36 -0800

On Jan 13, 2004, at 11:51 AM, Jonathan Wight wrote:

In my NSDocument's -prepareSavePanel method I'm adding a pop-up menu to
allow the user to select the format to save the document as.

Is there any reason why the alternate options are not presented automatically?
If you want to support write-only formats, look for NSExportableAs.
<http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/ Tasks/FAQ.html> etc.

However I'm unsure where to make the changes necessary to actually
change the file type during the method that physically writes the file
(-[NSDocument writeToFile:ofType:] in this case).

You shouldn't change the type in that method -- you're given the type as one of the parameters...

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Setting a documents file type during save as=8 5
      • From: Jonathan Wight <email@hidden>
References: 
 >Setting a documents file type during save as=8 5 (From: Jonathan Wight <email@hidden>)

  • Prev by Date: applescript objectSpecifier error
  • Next by Date: Re: How to completely release every object allocated when opening a NIB file ?
  • Previous by thread: Setting a documents file type during save as=8 5
  • Next by thread: Re: Setting a documents file type during save as=8 5
  • Index(es):
    • Date
    • Thread