Re: Newbie question: forcing data format during saveDocumentTo:
Re: Newbie question: forcing data format during saveDocumentTo:
- Subject: Re: Newbie question: forcing data format during saveDocumentTo:
- From: Scott Anguish <email@hidden>
- Date: Sun, 31 Aug 2003 02:22:48 -0400
On Aug 29, 2003, at 7:03 PM, Jerry wrote:
While I can work around this, I think I'm missing something. What
determines the document type sent to dataRepresentationOfType:?
You can specify the types of data you can save as "write-only" types.
You use the NSExportableAs to specify types that your documents can
write, but not read in the Document types portion of the project's
Info.plist (look at listing 2 on this page
<
http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/
Concepts/DocTypePList.html#//apple_ref/doc/uid/20000024>
Read
<
http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/
Tasks/FAQ.html> which discusses a bunch of relevant issues to this.
Also, the Sketch example uses the NSExportableAs key to export IFF and
EPS images. So you might want to look there.
You can only "export" when you do a Save-as... and these additional
types will show up in the panel then.
_______________________________________________
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.