Re: NSDocument: how to save document as a simple text file
Re: NSDocument: how to save document as a simple text file
- Subject: Re: NSDocument: how to save document as a simple text file
- From: Ondra Cada <email@hidden>
- Date: Fri, 26 Apr 2002 19:05:10 +0200
On Friday, April 26, 2002, at 06:20 , Gilles Celli wrote:
Well several readers (thanx) pointed out to use the method
writeToFile:path
atomically: to save it as a text file.
But how do I get the "path" when I choose to save from the menu
With "File -> Save as..." ?
And where should I put this method in
Of (NSData *)dataRepresentationOfType:(NSString *)aType ?
In this case, you don't want writeToFile:atomically:. You want the
-[NSString dataUsingEncoding:allowLossy:] instead.
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.