Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-17-2009, 01:29 PM   #6 (permalink)
benoitr007
Registered Member
 
Join Date: Jun 2009
Posts: 243
benoitr007 is on a distinguished road
Default

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?
benoitr007 is offline   Reply With Quote
 

» Advertisements
» Online Users: 697
20 members and 677 guests
.Snipe, @sandris, ADY, baja_yu, BrianSlick, doffing81, flamingliquid, givensur, headkaze, mediaspree, Paul Slocum, PixelEnvision, sacha1996, skrew88, SLIC, Thompson22, Touchmint, waghman, WallStreetVH, Xaphann
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,415
Threads: 94,015
Posts: 402,527
Top Poster: BrianSlick (7,978)
Welcome to our newest member, deannme48
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:31 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.