Re: Bindings problem...
Re: Bindings problem...
- Subject: Re: Bindings problem...
- From: Steven Kramer <email@hidden>
- Date: Sat, 18 Dec 2004 10:32:32 +0100
Op 17-dec-04 om 16:57 heeft Eli Dylan Lorimer het volgende geschreven:
Inaugural attempt at using bindings...
I'm getting the following error on application start:
addObserver:forKeyPath:options:context:] is not supported. Key path:
points
I'm using the document model with the following bits:
File Owner <- ObjectController -> PointGroup (ControllerArray) ->
EuclideanPoint(ControllerArray)
I'm trying to populate an excel style speadsheet (NSTableView) with 4
columns - x,y,z,id. The PointGroup array contains instances of
EuclideanPoint. The table displays each instace of EuclideanPoint
stored in the PointGroup.
I've got the ObjectController connected to FileOwner, PointGroup bound
to ObjectController, and EuclideanPoint bound to PointGroup. Also,
each column in my talbeview is bound to the appropriate dictionary.key
value in the EuclideanPoint.
Any ideas what I'm missing?
You probably need only one controller. Bind everything else using
keypaths. So assuming File's Owner is the document, and the document
has a member or getter
NSArray* points
you should bind the tablecolumns to
[File's Owner].arrangedObjects.x
Regards,
Steven Kramer
--
email@hidden
http://sprintteam.com/
_______________________________________________
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