Re: problem with NSMatrix
Re: problem with NSMatrix
- Subject: Re: problem with NSMatrix
- From: Markus Hitter <email@hidden>
- Date: Sun, 7 Apr 2002 11:35:59 +0200
Am Samstag den, 6. April 2002, um 20:03, schrieb Erik M. Buck:
----- Original Message -----
From: "joie" <email@hidden>
I can't remove all the cells and respawn them, either, as this is a
level editor for a tile-based RPG, and to lose all one's work just
because one mis-sized the map would be quite frustrating.
You should not be storing your game's state in cells.
Well, I'd tend to do such things, too ...
Cells are part of a view in the model-view-controller paradigm.
Yes, of course. For exact this reason they store what the user sees.
You need a model that stores game information. The fact that
you use cells or a custom view or text to a terminal should not
matter to the model.
There's another paradigm for me: Always store each piece of
information in one place only. This means here, either in the
model _or_ in the view. Ideally, you can forget about
information synchonisation completely.
Just my $0.02
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.