Re: No doubt easy for you masters...
Re: No doubt easy for you masters...
- Subject: Re: No doubt easy for you masters...
- From: Charles Srstka <email@hidden>
- Date: Sun, 6 Oct 2002 02:00:15 -0500
To write the file:
[[someTextView string] writeToFile:@"/Some folder/some file.txt"
atomically:YES];
To read it:
[someTextView setString:[NSString stringWithContentsOfFile:@"/Some
folder/some file.txt"]];
On Sunday, October 6, 2002, at 01:26 AM, Phillip Ulrich wrote:
While I have no trouble with regular, non-document based Cocoa apps,
document-based gives me fits. So, I ask: what's the simplest possible
way to just write the text in an NSTextView out to a text file, and
read it back in and put the text into the NSTextView?
Thanks,
Phil Ulrich
_______________________________________________
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.
_______________________________________________
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.