• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Application Architecture or approach
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Application Architecture or approach
      • From: Louis Demers <email@hidden>
References: 
 >Application Architecture or approach (From: Louis Demers <email@hidden>)
 >Re: Application Architecture or approach (From: Kyle Sluder <email@hidden>)
 >Re: Application Architecture or approach (From: Louis Demers <email@hidden>)
 >Re: Application Architecture or approach (From: Graham Cox <email@hidden>)
 >Re: Application Architecture or approach (From: Louis Demers <email@hidden>)
 >Re: Application Architecture or approach (From: Graham Cox <email@hidden>)
 >Re: Application Architecture or approach (From: Louis Demers <email@hidden>)

  • Prev by Date: Re: Transparent Image
  • Next by Date: Cocoa application won't die
  • Previous by thread: Re: Application Architecture or approach
  • Next by thread: Re: Application Architecture or approach
  • Index(es):
    • Date
    • Thread