• 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
Re: Binding of "Object" and "Value" in NSPopupButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding of "Object" and "Value" in NSPopupButtonCell


  • Subject: Re: Binding of "Object" and "Value" in NSPopupButtonCell
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 7 Jan 2009 21:51:40 -0800


On 2009 Jan, 07, at 17:35, Ken Thomases wrote:

But the current rank should show even when a row is not selected, right? I think by using a Controller Key of selectedObject, all rows will show the rank of the selected employee, not the employee on that row.

No, I don't recall having that problem -- the rank would stay set when I selected a different row. But, Ken, I don't want to go and break it again to re-test. What I was doing was completely wrong and we risk misleading casual readers by further discussing it.


Now, I've got my Content, Content Values and Selected Object all bound to the same array controller with Controller Key as arrangedObjects, and the three model key paths are allowedRanks, allowedRanks.rankDisplayName, and rank, respectively. (Of course I'm translating from my real project's symbols to the DepartmentAndEmployees example).

It's very conventional, logical if I think about it, and beautiful, and it works.

_______________________________________________

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


References: 
 >Binding of "Object" and "Value" in NSPopupButtonCell (From: Jerry Krinock <email@hidden>)
 >Re: Binding of "Object" and "Value" in NSPopupButtonCell (From: Ken Thomases <email@hidden>)
 >Re: Binding of "Object" and "Value" in NSPopupButtonCell (From: Jerry Krinock <email@hidden>)
 >Re: Binding of "Object" and "Value" in NSPopupButtonCell (From: Ken Thomases <email@hidden>)

  • Prev by Date: App Listener?
  • Next by Date: Re: App Listener?
  • Previous by thread: Re: Binding of "Object" and "Value" in NSPopupButtonCell
  • Next by thread: NSWindowController deallocation does not remove key value observing
  • Index(es):
    • Date
    • Thread