Re: [newbie] displaying the value of a slider
Re: [newbie] displaying the value of a slider
- Subject: Re: [newbie] displaying the value of a slider
- From: email@hidden
- Date: Sun, 13 Oct 2002 06:23:23 -0500
This requires no code. You can do it all in Interface Builder. Drag a
slider to the document. Drag a text box to the document. Drag a
connector from the slider to the text box and select the Target you
want (You probably want "takeIntValueFrom:), compile/run the app and
drag the slider around. The textField is automagically populated.
This very example is in at least one Cocoa book. If you want to learn
this environment, you'll need a book. Many people seem to like "Cocoa
Programming for MacOSX". I prefer "Building Cocoa Applications". Both
can be found at Amazon.com. You should also find a documentation
browser you like. There are several good ones. I use two, Cocoa Browser
and AppKiDo. These programs make finding Apple's Cocoa documentation
much easier. (Notice I didn't say easy.)
On Sunday, October 13, 2002, at 05:05 AM, Jean-Baptiste Le Stang wrote:
Hi everyone, i'm trying to learn Cocoa and for the moment i'd like to
display the value of a slider in a TextField, could someone tell me
what's
te right syntax for getting the value of the slider?
Jean-Baptiste
_______________________________________________
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.
_______________________________________________
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.