• 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: re-making connections with a different controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: re-making connections with a different controller


  • Subject: Re: re-making connections with a different controller
  • From: Graham Cox <email@hidden>
  • Date: Wed, 10 Jun 2009 13:07:01 +1000


On 10/06/2009, at 9:15 AM, Stephen Blinkhorn wrote:

Perhaps this illustrates an underlying fundamental problem with the structure of my app but I don't want to know about that right now :) Well, ok, maybe I do...


I think you recognise that this is indeed problematic... ;-)

If the controls are all the same, why not have one set of controls and one controller, and switch the connection from the controller to the data model instead? That sounds like a much more conventional and sane approach. Bindings or KVO can make that really easy to handle, with very little code required to "rewire" the controls to reflect the new data model object.

--Graham


_______________________________________________

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


References: 
 >re-making connections with a different controller (From: Stephen Blinkhorn <email@hidden>)

  • Prev by Date: Cocoaheads Lake Forest will _not_ have an official meeting in June. Our next meeting is on 7/8
  • Next by Date: Re: [NSTask] -launch return
  • Previous by thread: Re: re-making connections with a different controller
  • Next by thread: Cannot open file
  • Index(es):
    • Date
    • Thread