Bindings - accessing the model from a seperate window
Bindings - accessing the model from a seperate window
- Subject: Bindings - accessing the model from a seperate window
- From: Dan Price <email@hidden>
- Date: Fri, 13 Jan 2006 14:23:40 +0000 (GMT)
I'm really stuck and need some help. I have this
multi-document application and a single inspector
palette which displays the properties and settings of
the selection in the main window. There is only one
instance of this utility panel, and as the user
closes/switches between documents and selections, the
content of the inspector must be updated. This is
currently handled by the inspector's
NSWindowController subclass.
When the controller subclass recieves a notification
from the model, it asks the NSApp object for it's
delegate. My NSApp delegate contains a pointer to the
current document model and the controller uses this
link to update it's outlets. But this is a lot of code
for a lot of outlets and I want to use bindings
instead.
The problem is I can't come up with a key-string which
works. I have an NSController object in the palette
nib, but I'm not sure what I should be using for it's
Content outlet. Can anyone point me in the right
direction? I can get bindings working when the
NSController is in the same nib as the Model, no sweat.
___________________________________________________________
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry
_______________________________________________
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