• 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
Update slider position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Update slider position


  • Subject: Update slider position
  • From: Mike <email@hidden>
  • Date: Sun, 11 May 2008 19:50:06 +0300

Hello,

I am just learning Cocoa so this is probably very simple question.

I have NSTextField which is connected to a slider in IB with its (Sent Actions = Take Double Value from).
The slider is connected to my controller with its sent action.


So, in my controller I get a "callback" from slider when it is moved and I reflect the value to NSTextField.
(Apparently I can't have them both connected to each other AND still have connection to my controller when either is changed?)


I have also a reset-button which resets the values to their defaults (i.e. I set the value of NSTextField ).

Q: How do I make that reset to reflect to slider too without having another outlet and do it manually?

code:
[txtMouse setDoubleValue: fMouse];

txtMouse is my outlet to NSTextField value.

I would like to add something like [txtMouse refresh]; to force the connected slider reflect change.


Thank you. _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Update slider position
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: gathering system information
  • Next by Date: Cocoa string to carbon compatible C string
  • Previous by thread: Re: Problem with CIFilters
  • Next by thread: Re: Update slider position
  • Index(es):
    • Date
    • Thread