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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
