Re: Converting NSArray of NSString elements into binary?
Re: Converting NSArray of NSString elements into binary?
- Subject: Re: Converting NSArray of NSString elements into binary?
- From: mmalc crawford <email@hidden>
- Date: Mon, 1 Oct 2007 20:39:01 -0700
On Oct 1, 2007, at 7:27 PM, Scott F Bayes wrote:
At the risk of summary ostracization by the list,
[...]
[fileName getCString:fname];
Well, here's the summary ostracism:
*Do not use getCString.*
It's deprecated. See <http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/occ/instm/NSString/getCString:
>.
If you want to retrieve the characters, specify an encoding or use
getCharacters:.
In the current context, dataUsingEncoding: looks like it may meet the
OP's needs.
Although it's still not clear exactly what use will be made of the
data in the end...
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden