Thank you so much for the really nice replies BrianSlick!
Quote:
It's probably harmless in this case, but I'm a real stickler for using the accessors. This would change your second line to:
[[self enemiesArray] addObject: myEnemy];
|
Hmm... If I may ask, what's the advantage of using the getter accessor? I can see for the setter one, but doesn't the getter do exactly the same as just writing
enemiesArray? In what cases could it not be harmless to do so?