Using an NSMatrix subclass for a board game view
Using an NSMatrix subclass for a board game view
- Subject: Using an NSMatrix subclass for a board game view
- From: Brautaset Stig <email@hidden>
- Date: Fri, 12 Oct 2007 17:31:23 +0100
Hi all,
I'm writing a simple Reversi game, and I'm currently struggling a bit
trying to create a simple animation of the pieces being flipped when
a player (or the AI) makes a move. I'm using a subclass of NSMatrix
for my main view, and trying to make it call its own display routine
again.
Questions:
1. How would I best make the NSMatrix display itself again after a
small delay (say 10 ms)?
2. Am I going about this in the wrong way? Should I perhaps not
subclass NSMatrix at all, but just delegate to the controller for
this logic?
The code of the project is available here: http://svn.brautaset.org/
Desdemona/trunk/
The NSMatrix subclass in particular is here: http://svn.brautaset.org/
Desdemona/trunk/BoardView.m
Stig
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden