Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-05-2009, 08: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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,157
Threads: 38,932
Posts: 170,812
Top Poster: smasher (2,565)
Welcome to our newest member, hydevil
Powered by vBadvanced CMPS v3.1.0

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