FROM : Mike
DATE : Sun May 11 18:50:06 2008
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.
DATE : Sun May 11 18:50:06 2008
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.
| Related mails | Author | Date |
|---|---|---|
| Mike | May 11, 18:50 | |
| Kyle Sluder | May 11, 20:35 |






Cocoa mail archive

