• 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
NSPopupbutton binding setter getter....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopupbutton binding setter getter....


  • Subject: NSPopupbutton binding setter getter....
  • From: R <email@hidden>
  • Date: Thu, 07 Jul 2011 17:23:52 -0700 (PDT)

I'm trying to understand when NSPopupbutton calls setter and getters
in bindings.

I have an array, an array controller, a tableview, a labelview and a
NSPopupbutton.

The arraycontroller generates objects (via add/remove) and loads them
into the tableview via a binding.  Let's say we have a one column
tableview populated by anObject.nameValue which is a string.

The popupbutton is populated with the content from the arraycontroller
via a binding.

The popbutton selected-content (or value) is bound to a variable.

The labelview is bound to the same variable.

I've manually written setters / getters for the labelview variable.

I'm finding that NSPopUpButton will NOT call the setter or getter if
the fields for the popupbutton are all the same name (pointer vales
are different).

If I change a name in the tableview, then select the new name with the
popupbutton, the setter/getter are called.

This presents many problems.... thoughts?


_______________________________________________

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

  • Prev by Date: Re: linking the same static library into two places
  • Next by Date: Re: App Delegate Methods
  • Previous by thread: Re: NSMapTable on iOS?
  • Next by thread: getting last accessed date
  • Index(es):
    • Date
    • Thread