Re: Why is it like this?
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