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 07-05-2009, 01:18 AM   #4 (permalink)
oohmyygoood
Registered Member
iPhone Dev SDK Supporter
 
Join Date: May 2009
Posts: 49
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
 

» Advertisements
» Stats
Members: 158,738
Threads: 89,193
Posts: 380,539
Top Poster: BrianSlick (7,129)
Welcome to our newest member, chrisedjohn
Powered by vBadvanced CMPS v3.1.0

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