On 17 May 2014, at 9:46 am, William Squires <wsqui...@satx.rr.com> wrote:

> how do I convert the contents of an NSString object into an NSData object? 
> Why? Because -[NSFileHandle writeData:(NSData *)] takes an NSData object, not 
> an NSString object. Arrrgghhhh. :(


BTW, is there some reason you can't just use [NSString 
writeToURL:atomically:encoding:error:]?

Presumably on iOS this method does the work using a minimum of additional 
memory.

--Graham



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to