Re: NSString initWithData: NSUTF8StringEncoding - returns 'nil'
Re: NSString initWithData: NSUTF8StringEncoding - returns 'nil'
- Subject: Re: NSString initWithData: NSUTF8StringEncoding - returns 'nil'
- From: Lance Drake <email@hidden>
- Date: Fri, 3 Dec 2004 11:12:52 -0700
The contents of an RTF file may look like a string, but they're not;
they should be treated as data. Leave it as an NSData and read and
write it using NSData methods.
Douglas Davidson
Hi Douglas,
That is excellent feedback and advice. It occurred to me - (after I
sent the question, of course) - "Why bother going thru the NSString
phase? - just write the data to a file". So, you have confirmed my
thoughts and I appreciate your especially prompt help.
Best Wishes,
Lance Drake
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden