• 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
Highly Newbie Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Highly Newbie Question


  • Subject: Highly Newbie Question
  • From: Rod Kirkpatrick <email@hidden>
  • Date: Sat, 18 Jun 2005 15:07:11 +1000

Hi All

Ive been playing around with XCode to get my feet wet - very simple stuff. The current objective is to get a specific character from a string using characterAtIndex

I have two IBOutlets declared in Controller.h.
sourceString and characterString

I have two NSStrings in the same place
sourceStringValue and characterStringValue

I can successfully set sourceStringValue by taking data from the GUI using [sourceString stringValue]

I can assign sourceStringValue to characterStringValue and display the result in the appropriate field in the interface.

By going through old posts and shamelessly cribbing I added a variable of type unichar and got to
c = [sourceStringValue characterAtIndex: 1]; which built OK

How on earth do I get the "c"  value back to the interface ??

The problem as far as I can tell revolves around the data type Im using but I have no idea what

TIA for any help

Rod
 _______________________________________________
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

  • Follow-Ups:
    • Re: Highly Newbie Question
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Highly Newbie Question
      • From: Andy Lee <email@hidden>
    • Re: Highly Newbie Question
      • From: Sarat Kongara <email@hidden>
  • Prev by Date: Re: What, exactly, makes a Cocoa project document-based?
  • Next by Date: Re: Highly Newbie Question
  • Previous by thread: Re: What, exactly, makes a Cocoa project document-based?
  • Next by thread: Re: Highly Newbie Question
  • Index(es):
    • Date
    • Thread