Re: Highly Newbie Question
Re: Highly Newbie Question
- Subject: Re: Highly Newbie Question
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sat, 18 Jun 2005 20:47:29 +0200
At 15:07 Uhr +1000 18.06.2005, Rod Kirkpatrick wrote:
c = [sourceStringValue characterAtIndex: 1]; which built OK
How on earth do I get the "c" value back to the interface ??
The other reply you got is probably what you really wanted. But
should you ever be in a situation where you need it, here's two ways
to get a unichar c back into an NSString:
str = [NSString stringWithFormat: @"%C", c];
str = [NSString stringWithCharacters: &c length: 1];
The latter probably has less overhead, while the former is handy if
you e.g. want to add additional characters or even strings or ints as
strings.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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