Re: NSString and writeToFile
Re: NSString and writeToFile
- Subject: Re: NSString and writeToFile
- From: Sean Long <email@hidden>
- Date: Mon, 22 Sep 2003 13:51:42 -0700
On Monday, September 22, 2003, at 12:41 PM, Miguel Nunes Correia wrote:
Hi,
I'm writing a program that generates some text in NSString and I want
to save it into a file to a specific path chosen by the user. The
problem is that it gives me this error : "*** +[NSString
writeToFile:atomically:]: selector not recognized" and doesn't save
the file making application exit with status 0.
Here is where I call writeToFile:
table = [NSString writeToFile:filePath atomically:YES];
writeToFile is an instance method of NSString not a class method so try
something like the following
[someString writeToFile:filePath atomically:YES];
Sean
_______________________________________________
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.