• 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: Why is it like this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is it like this?


  • Subject: Re: Why is it like this?
  • From: Andy Lee <email@hidden>
  • Date: Mon, 30 May 2005 22:57:10 -0400

On May 30, 2005, at 8:32 PM, Aaron Fothergill wrote:
How to design the views and controllers to receive mouse and keyboard input seems to be a common issue with Cocoa apps on the games-dev list too.
[...]
It is an example though of how one person's nice design paradigm can be another person's extra workload :/

<digression>
Indeed. I've been scratching my head over a different overlap, the one between view and controller.


I have an inheritance hierarchy of model objects. Lists of those objects get displayed in different ways in various places throughout my UI. It would be convenient for the objects to have methods like - stringToDisplayInXYZBrowser and -stringToDisplayInABCContextualMenu, but this means model objects would be aware of the specific views they will be displayed in. I *might* be able to put the display methods into an informal protocol, and implement them in categories of my model objects. I'm considering that for a future refactoring, but right now I'm using lightweight wrapper objects around the model objects.
</digression>


--Andy

_______________________________________________
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


  • Follow-Ups:
    • Re: Why is it like this?
      • From: Sherm Pendley <email@hidden>
    • Re: Why is it like this?
      • From: Raffael Cavallaro <email@hidden>
References: 
 >Re: Why is it like this? (From: Gregory Weston <email@hidden>)
 >Re: Why is it like this? (From: Thomas Davie <email@hidden>)
 >Re: Why is it like this? (From: Gregory Weston <email@hidden>)
 >Re: Why is it like this? (From: Thomas Davie <email@hidden>)
 >Re: Why is it like this? (From: Aaron Fothergill <email@hidden>)

  • Prev by Date: Re: Tiger Decoding problem
  • Next by Date: [Moderator] EOT Re: WWDC 2005 Suggestion
  • Previous by thread: Re: Why is it like this?
  • Next by thread: Re: Why is it like this?
  • Index(es):
    • Date
    • Thread