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-06-2009, 11:33 AM   #5 (permalink)
exorcyze
Registered Member
 
Join Date: Dec 2008
Posts: 495
Default

If you read my post, you'll see that I am absolutely NOT indicating that they are always equivalent. The example provided was for a primative ivar that had it's @property option set to readwrite.

[edit]
Again, you will want to use the self prefix when you want to SET a value for an object variable who's @property declaration indicated extra memory notations ( retain / copy ). In other circumstances it's syntactical fluff as far as I'm aware.

It's true that prefixing with self calls the setter method. But the point is that in cases where no retain/copy/release is being performed in the setter ( IE when you specify assign, readwrite, etc for nonatomic properties ) that the two are functionally performing the same thing behind the scenes.

=)
__________________
My Apps on AppStore : gScale (guitar scales reference), eMaze, eMaze Lite, eTimesheet

Last edited by exorcyze; 05-06-2009 at 11:44 AM.
exorcyze is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,686
Threads: 89,160
Posts: 380,406
Top Poster: BrianSlick (7,110)
Welcome to our newest member, v2w
Powered by vBadvanced CMPS v3.1.0

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