NSTableColumn & binding value
NSTableColumn & binding value
- Subject: NSTableColumn & binding value
- From: Kaspar Fischer <email@hidden>
- Date: Mon, 28 Mar 2005 05:14:24 +0200
Hi everybody,
I have a conceptual question regarding tables. I want
to create a table with two columns, one holding
text cells and one holding buttons with images. The
model behind the table provides the text to be dis-
played in the text cells and also the images for the
buttons. (Potentially, every row can have a button
with a different image.)
I therefore created an NSArrayController and bound
the value of the first NSTableColumn to this controller
with controller-key "arrangedObjects" and model-path
"name". This works fine.
For the second column, I want to bind the image of
NSTableColumn's buttons to the image provided by the
model. So I want to do something like binding the
second column to the controller with controll-key
"arrangedObjects" and model-path "image" BUT: this
binding should NOT bind the value of the button
BUT ITS IMAGE. How can I do this?
Thanks,
Kaspar
_______________________________________________
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