Re: Application Architecture or approach
Re: Application Architecture or approach
- Subject: Re: Application Architecture or approach
- From: Michael Ash <email@hidden>
- Date: Wed, 11 Feb 2009 23:39:48 -0500
On Wed, Feb 11, 2009 at 11:29 PM, Louis Demers <email@hidden> wrote:
> So the controller manages to reconnect the bindings to the selected objects.
> ! That would make sense. All that's left if to figure out the implementation
> details and coerce IB to do what I want. I'll try building a small test app.
Remember that you can bind to a key *path*, not just to a key. And
that a change to any element along the path will update the binding.
With that in mind, I would do this by putting an NSObjectController in
the nib for each palette. Your window controller for the palette
should then observe NSWindowDidBecomeMainNotification and update the
NSObjectController's content pointer to point to the document
corresponding to whatever window is currently the main window. Change
that one pointer, all your bindings re-point, everything is rosy.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden