iphone Programming Glossary: piecestate
Need some help understanding transient properties in Core Data http://stackoverflow.com/questions/7504391/need-some-help-understanding-transient-properties-in-core-data @property nonatomic retain NSSet pieces @property nonatomic readonly NSArray grid void awake void movePiece PieceState piece to_x int x y int y @end @implementation Board @dynamic pieces void awakeFromInsert super awakeFromInsert self awake.. initWithCapacity 10 _grid addObject column for int j 0 j 10 j column addObject NSNull null column release for PieceState piece in self.pieces if piece.x 0 piece.y 0 _grid objectAtIndex piece.x replaceObjectAtIndex piece.y withObject piece return.. 0 piece.y 0 _grid objectAtIndex piece.x replaceObjectAtIndex piece.y withObject piece return _grid void movePiece PieceState piece to_x int x y int y if x 0 y 0 NSObject capturedPieceObject self.grid objectAtIndex x objectAtIndex y if capturedPieceObject..
|