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 02-09-2010, 06:20 PM   #6 (permalink)
mebarron
Registered Member
 
mebarron's Avatar
 
Join Date: Apr 2009
Location: Michigan
Posts: 47
Default

Quote:
Originally Posted by BrianSlick View Post
What you are missing is a good read of my properties thread. Go read it.

And you can't rely on retainCount, particularly if the object should be gone.
Thanks so much for taking the time. Thanks for the heads up about your
fine properties page. I had never before seen code for a setter such
as produces by @synthesize. I assumed that the retain/release protocol
had to be coded if you wanted it. All is clear now.

- (void)setMyArrayInstanceVariable: (NSArray *)anArray
{
[myArrayInstanceVariable release];
[anArray retain];
myArrayInstanceVariable = anArray;
}
mebarron is offline   Reply With Quote
 

» Advertisements
» Online Users: 342
22 members and 320 guests
ADY, AppAnnex, chemistry, fkmtc, HemiMG, her-ur, iDifferent, ilmman, leahov, MarkC, marto1914, Meoz, nicko, padsoftware, Raffaello, sneaky, sojourner, syver, tathaastu, Thrillhouse1919, timle8n1, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,220
Posts: 380,714
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

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