custom control's value change isn't being noticed by controller
custom control's value change isn't being noticed by controller
- Subject: custom control's value change isn't being noticed by controller
- From: Steve Christensen <email@hidden>
- Date: Thu, 26 Feb 2009 13:21:40 -0800
I've written a custom control containing multiple NSTextFieldCells.
The combined cell values result in a single integer value accessed
via the control's intValue/setIntValue: and objectValue/
setObjectValue: (as a NSNumber).
The control is correctly displaying the current value when it's bound
to a controller's someValue method, but if I edit one of the cells in
the control, the controller's setSomeValue: isn't firing to pick up
the change. When editing finishes, my control's textDidEndEditing:
method is called. I calculate the updated control value and call
[self setObjectValue:[NSNumber numberWithInteger:value]] to get
observers to notice the change but nothing happens.
I figure I'm missing some little thing in my setup but I don't know
what. Any clues?
steve
_______________________________________________
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