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, 05:28 PM   #16 (permalink)
BrianSlick
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,978
BrianSlick has a spectacular aura about
Default

Quote:
Originally Posted by benoitr007 View Post
Even for non-object instance variables?
Memory problems, no. Do I use them, yes.

My goal is consistency. I don't want to be in a mode of "well, this IS an object, so I'll use the accessor method, but this ISN'T an object, so I won't." Too easy to screw up, one way or another. By using @properties for everything, you do the same thing each time regardless of type. And if your int suddenly becomes an NSNumber, the impact of that change is minimized.

It also helps to distinguish between local variables and instance variables. I don't use instance variables, so everything global will be a [self whatever]. If I see someVariableName, I know instantly that it is local.
__________________
BriTer Ideas LLC - Code review, consulting, development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is online now   Reply With Quote
 

» Advertisements
» Online Users: 689
21 members and 668 guests
.Snipe, @sandris, ADY, Alex40, BrianSlick, dacapo, flamingliquid, GarrettVD, givensur, headkaze, iShailesh, MartinB, Newbie123, Paul Slocum, skrew88, Sloshmonster, Touchmint, waghman, WallStreetVH, wojtkow, Xaphann
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,415
Threads: 94,015
Posts: 402,528
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:39 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.