• 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: problem with NSMatrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: problem with NSMatrix (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Re: Why does PB look in ~/Developer for ProjectBuilder Extras?
  • Next by Date: (no subject)
  • Previous by thread: Re: problem with NSMatrix
  • Next by thread: Re: problem with NSMatrix
  • Index(es):
    • Date
    • Thread