• 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: Aaron Fothergill <email@hidden>
  • Date: Tue, 31 May 2005 01:32:37 +0100

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. Mainly because in full screen mode the 'blanking' view appears to steal the controller events from the game's actual drawing view. This can be got around by delegating the events to the appropriate view, but it's a little hacky and there's not really a definite example of how to do it nicely.

It is an example though of how one person's nice design paradigm can be another person's extra workload :/

Aaron Fothergill
MD/Lead Coder
Strange Flavour Ltd.
http://www.strangeflavour.com

On 31 May 2005, at 01:16, Thomas Davie wrote:

On May 31, 2005, at 1:07 AM, Gregory Weston wrote:


Shortly after I wrote:


Nothing prevents a view from also being a controller.



Thomas Davie (who signed his message "Bob") wrote:



...Other than good design.



and Ondra Cada wrote:



What about common sense and the MVC paradigm?



The key word is "prevent." Good design and common sense are both fairly subjecting and the MVC paradigm is a recommendation rather than a rule. I happen to agree with both Thomas/Bob and Ondra on the philosophy. But nothing _prevents_ someone from making a view that is also a controller.



True enough... I perhaps used a slightly overly strong statement, I should point out that my point was "perhaps with slightly more design thought it might work better".


Bob
_______________________________________________
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


_______________________________________________ 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: Andy Lee <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>)

  • Prev by Date: Re: NSButtonCell examples
  • Next by Date: FrameMaker "clone"
  • Previous by thread: Re: Why is it like this?
  • Next by thread: Re: Why is it like this?
  • Index(es):
    • Date
    • Thread