Bindings: inspector w/bindings?
Bindings: inspector w/bindings?
- Subject: Bindings: inspector w/bindings?
- From: Michael Carter <email@hidden>
- Date: Fri, 6 May 2005 14:28:48 -0700
Hey all.
Okay, I'm straining my brain trying to figure if this is possible or
not. My intuition tells me it should be, but my intuition frequently
lies to me. :)
I've seen examples of how to synchronize data between an object and
an "inspector" panel using the basic delegate/notification design
pattern. I'm wondering if it's possible to do the same thing with
bindings.
For example, say I have a main window with an NSTableView. This view
is bound through an NSArrayController to a mutable array in a
controller class. Objects are added and removed freely through the
interface. All is well.
Then say I wanted to muck things up by adding a separate "inspector"
panel to display the specifics of whatever object happens to be
selected in the NSTableView. Click on an item in the table view, the
inspector magically knows which object in the array it is and can
display it's info.
So, is it possible?
I was thinking about the 'how'. Perhaps if the controller has a
reference to both the NSArrayController in the main window and a to a
NSObjectController (maybe?) in the inspector panel, it could connect
the two together so that the inspector could query the tableview's
current selection?
So am I nuts or what? I figured I'd better ask the list before trying
it on and destroying my code. :)
#mikec
_______________________________________________
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