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 07-05-2009, 12:18 AM   #4 (permalink)
oohmyygoood
Member
iPhone Dev SDK Supporter
 
Join Date: May 2009
Posts: 43
Default Rule?

Interesting. It doesn't say in the Class Ref Library that buttonWithType returns an autorelease object.

Is this the case for other non-initWithXxxxxx methods that create and return objects as well? Such as [NSString stringWithString:] for instance?

I guess my question is if the rule is to only release objects that were created using an [.... alloc] init....] combo and all other methods return autorelease objects?
oohmyygoood is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 230
21 members and 209 guests
churn, ddorrity, donbhar, Ed99, funhog, gardenofwine, hobbyist, inetryconydot, jj0b, linkmx, masc2279, mriphoneman, pereorra, ravi124, redmouse, scotopia, smilespray, smrtital, ybrikeeg, zackattack, _nivek
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,276
Threads: 39,069
Posts: 171,323
Top Poster: smasher (2,575)
Welcome to our newest member, jstewuk
Powered by vBadvanced CMPS v3.1.0

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