Re: Setting a documents file type during save as=8 5
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.