• 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: [newbie] displaying the value of a slider
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >[newbie] displaying the value of a slider (From: Jean-Baptiste Le Stang <email@hidden>)

  • Prev by Date: Re: Cocoa Books (was New to Cocoa)
  • Next by Date: Newbie: app cursors and icons
  • Previous by thread: [newbie] displaying the value of a slider
  • Next by thread: Re: [newbie] displaying the value of a slider
  • Index(es):
    • Date
    • Thread