Binding to an NSButtonCell's title
Binding to an NSButtonCell's title
- Subject: Binding to an NSButtonCell's title
- From: Andrew Merenbach <email@hidden>
- Date: Mon, 6 Dec 2004 11:15:27 -0800
I have a table view column that contains NSButtonCells instead of
NSTextFieldCells, but would like (if possible) to give each one a title
(as they are not check boxes, but square buttons) much as one could
give a text field cell a string value--in essence with a binding to the
arrangedObjects property of an array controller of NSStrings.
Is this a current (or even intended) capability of bindings? I've
checked out mmalc's examples and Apple's docs, but so far
programmatically (manually) establishing the bindings has proven a
fruitless task. The docs for NSButtonCell state that setObjectValue:
causes the cell to convert the passed object value to a cell state
integer; yet overriding this to set the title still causes an error
when I attempt bind the "value" property of the table column to my
array controller. Calling exposeBinding: with the string @"value"--on
both NSTableColumn and a subclass of NSButtonCell--don't seem to
help--although the docs do state that those are mostly for Interface
Builder recognition of the bindings.
Is what I am trying to do feasible?
Cheers,
Andrew Merenbach
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden