• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
custom control's value change isn't being noticed by controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: custom control's value change isn't being noticed by controller
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: makeKeyAndOrderFront Crashing
  • Next by Date: Re: Metrics for a NSTextField
  • Previous by thread: Re: Save As panel file types popup menu
  • Next by thread: Re: custom control's value change isn't being noticed by controller
  • Index(es):
    • Date
    • Thread