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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-05-2009, 09:35 PM   #1 (permalink)
jj0b
Registered Member
 
Join Date: Mar 2009
Posts: 27
Default When to use "self.objectName" or just "objectName"

Trying to understand when it is needed to prepend object names with self.

Sometimes I am able to reference objects that I have initialized without adding self. and other times my code won't work without adding it.

Can someone explain when I should definitely use the self. reference and when it is not needed?
jj0b is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,689
Threads: 89,161
Posts: 380,408
Top Poster: BrianSlick (7,110)
Welcome to our newest member, mikeslater113
Powered by vBadvanced CMPS v3.1.0

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