• 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: Pop Up Menu in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pop Up Menu in NSTableView


  • Subject: Re: Pop Up Menu in NSTableView
  • From: Keary Suska <email@hidden>
  • Date: Mon, 25 Mar 2013 15:05:19 -0600

On Mar 25, 2013, at 11:05 AM, Jerry Krinock wrote:

> • NSTableColumn 'selected object' must be bound to 'arranged objects' of array controller.  (This is always true, regardless of what the cell type is.)

I don't understand this statement--I didn't think that NSTableColumn has a "selected object" binding--there doesn't seem to be one in the bindings inspector--and if it did, what would it do? Did you mean "value" binding, or NSPopupButtonCell, instead?

> • For dynamic menu contents, NSPopupButtonCell 'content' may be bound to an object and key path which returns an array containing objects which are assignable to the 'selected object'.

I can't make sense of this either--just the last bit about "assignable to the 'selected object'."

> • NSPopupButtonCell 'content values' may be bound to an array giving the strings you want displayed in the table, by appending an additional key onto the key path which 'content' is bound to.  The additional key must be a method which which can be sent to the objects in the array that 'contents' is bound to, and return a string.

Are you simply describing here the details of popup bindings, or something specific to getting bindings to work with an NSPopupButtonCell in an NSTableView? I don't recall ever being successful at using bindings in this case, but then maybe I didn't try hard enough or just gave up too soon and developed a belief that it wasn't possible...

TIA,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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: 
 >Pop Up Menu in NSTableView (From: Pascal Harris <email@hidden>)
 >Re: Pop Up Menu in NSTableView (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]
  • Next by Date: Re: ARC Help
  • Previous by thread: Re: Pop Up Menu in NSTableView
  • Next by thread: How to search the list archives?
  • Index(es):
    • Date
    • Thread