Re: Getting started in Cocoa and IB
Re: Getting started in Cocoa and IB
- Subject: Re: Getting started in Cocoa and IB
- From: John Clark <email@hidden>
- Date: Wed, 4 Dec 2002 20:37:03 -0800
Am Dienstag den, 3. Dezember 2002, um 08:41, schrieb Julien Silland:
Le mardi, 3 dic 2002, ` 17:24 Europe/Paris, Chris Ridd a icrit :
On 3/12/02 4:03 pm, Julien Silland <email@hidden> wrote:
myString = [myTextField stringValue];
myConstChar = [myString cString];
For a cheap and cheerful test program that's fine. However the cString
method is deprecated so you shouldn't really use it... Presumably
because
there's no control over what encoding is used in the string.
I know. It's really something I typed quickly, just to show an example.
I am so a beginner in Cocoa too :) I didn't know the method was
deprecated. Sorry about that.
With several 'hints' from the responses I came up with my cheap shot
method, having associated an action with the NSTextField instance.
c_string = [[sender stringValue] cString];
This avoided the need to add anything to the NSTextField object in the
dialog, and so I could get on with the little learning intro.
Perhaps in a few days I'll look into a more sophisticated way to do this.
Thanks.
_______________________________________________
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.