• 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: Getting started in Cocoa and IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting started in Cocoa and IB


  • Subject: Re: Getting started in Cocoa and IB
  • From: Julien Silland <email@hidden>
  • Date: Tue, 3 Dec 2002 17:03:23 +0100

Le mardi, 3 dic 2002, ` 16:49 Europe/Paris, John Clark a icrit :


However, my very simplistic first try seems to be very frustrating. What I need is
a hint on how to have a NSTextField result in an action which takes the string
typed by the user, and placed in a regular 'char' variable for use in a set of
standard C functions.

You can try the cString function of the NSString object. It returns a const char * type.

myString = [myTextField stringValue];
myConstChar = [myString cString];
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Getting started in Cocoa and IB
      • From: John Clark <email@hidden>
    • Re: Getting started in Cocoa and IB
      • From: Chris Ridd <email@hidden>
References: 
 >Getting started in Cocoa and IB (From: John Clark <email@hidden>)

  • Prev by Date: Re: Help with encodeObject: forKey:
  • Next by Date: Re: Quartz, QuickTime
  • Previous by thread: Getting started in Cocoa and IB
  • Next by thread: Re: Getting started in Cocoa and IB
  • Index(es):
    • Date
    • Thread