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 (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 arch...@mail-archive.com

Reply via email to