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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to