Update slider position
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