Re: Cocoa Bindings & different nibs
Re: Cocoa Bindings & different nibs
- Subject: Re: Cocoa Bindings & different nibs
- From: Keary Suska <email@hidden>
- Date: Mon, 09 Oct 2006 08:54:26 -0600
- Thread-topic: Cocoa Bindings & different nibs
on 10/9/06 2:53 AM, email@hidden purportedly said:
> 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.
With this setup you will have to bind to or through the InspectorController,
which should be the file's owner of the separate nibs. When a nib is loaded
(note: *loaded* but not necessarily displayed), all of the bindings will
automatically trigger. After that point, as long as you are changing values
in a KVO/KVC compliant manner, the bindings will sync properly.
A word of advice: you will probably run into less problems and headaches if
you keep the inspector view and all the subviews in a single nib.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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