Table bindings to objects
Table bindings to objects
- Subject: Table bindings to objects
- From: Jason Swain <email@hidden>
- Date: Tue, 19 Jul 2005 16:54:54 +0100
I have a table column that is bound to an NSArrayController where the
items are objects (i.e. not strings). I have not set a model key path
to select a string value (e.g. the name method of my class). I then
have an NSCell subclass that draws a representation of my object for
each cell.
I want the cell to be editable but this is not working. If I change
the binding to point to a string rather than an object then editing
does work, so I think I have narrowed it down to the fact that I am
using an object for the cell data rather than a string. I have
created the object class myself and have not implemented stringValue,
objectValue etc. I was wondering if this was the problem? Should I be
implementing some methods for conversion to/from a string for
editing? Or am I going about this the wrong way, I'm just not sure
how you are meant to structure something like this?
Does anyone know how this should work?
Jason
_______________________________________________
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