Re: Cocoa and UNIX txt files ??
Re: Cocoa and UNIX txt files ??
- Subject: Re: Cocoa and UNIX txt files ??
- From: Ondra Cada <email@hidden>
- Date: Sun, 24 Mar 2002 15:13:42 +0100
On Sunday, March 24, 2002, at 09:51 , Alberto wrote:
What I use in the String place to add the file content? Is there anything?
Yup, the most recommended way is at least trying to read the documentation.
If you did that, you'd know that
[clientsTextField setString:[NSString
stringWithContentsOfFile:@"clients.lst"]]
does exactly what you want.
First caveat is the path, which is to be set (through NSFileManager), or
explicitly given. Another is that unless you are pretty sure the file
contents is short, it might be better to use an NSTextView.
---
Ondra Cada
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.