Cocoa Bindings & different nibs
Cocoa Bindings & different nibs
- Subject: Cocoa Bindings & different nibs
- From: Jesus De Meyer <email@hidden>
- Date: Mon, 9 Oct 2006 10:53:59 +0200
Hi,
I'm writing a document based application. The document window
consists of 3 zones: an inspector view (which is a custom view), an
outline view, and another custom view where I draw rectangles that
represent certain objects.
What I wanna do is, if either the outlineview or the custom view is
selected, change the subviews of the inspectorview. The subviews of
the inspectorview are made in separate nibs, which are then loaded by
my InspectorController.
I would like to use bindings to populate each of the GUI elements of
these subviews. So for instance if I click on the custom view and a
rectangle is selected, I would tell the InspectorController to add
the subview that has all the properties I can change for this
rectangle and somehow tell bindings that the selection has been
changed so the subview gets populated.
I've looked at mmalc's GraphicBindings example (http://
homepage.mac.com/mmalc/CocoaExamples/GraphicsBindings.zip) but I
can't figure out how this all works. I wanna do something similiar,
except that my inspector subviews come from a external nibs.
How could I solve this problem? Any pointers would be very welcome.
Thanks in advance.
_______________________________________________
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