• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Highly Newbie Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Highly Newbie Question (From: Rod Kirkpatrick <email@hidden>)

  • Prev by Date: Re: Why is writeRows not being called in NSOutlineView?
  • Next by Date: Re: Hotkey in Cocoa (not using carbon).
  • Previous by thread: Re: Highly Newbie Question
  • Next by thread: How to find an over-released object?
  • Index(es):
    • Date
    • Thread