Re: How to get array of characters from NSString
Re: How to get array of characters from NSString
- Subject: Re: How to get array of characters from NSString
- From: Andrew Merenbach <email@hidden>
- Date: Thu, 7 Aug 2008 21:53:10 -0700
Hi!
Would -[NSString getCharacters:] or -[NSString getCharacters:range]
(both of which return a unichar array), or better yet -[NSString
getCString:maxLength:encoding:] work for your purposes?
Even better still, perhaps one of
- [NSString cStringUsingEncoding:]
- [NSString UTF8String]
- [NSString fileSystemRepresentation]
might work for you.
Cheers,
Andrew
On Aug 7, 2008, at 9:27 PM, SridharRao M wrote:
Hi,I want to retrieve characters from NSString Can any one guide me
how to
do it.
Ex:
NSString *ob=@"TEST Object";
Now how to retrieve the "Test Object " value into my Char Array.
Regards,
Sri.
_______________________________________________
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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