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 06-04-2009, 02:15 PM   #3 (permalink)
MatuX
Registered Member
 
Join Date: May 2009
Posts: 87
Default

Quote:
Originally Posted by inflecsys View Post
By using autorelease, you are making the object to be placed ion autorelease pool.



Yes, if you are not doing memory management on your own and
NO, if you are doing memory management on your own.



No compulsion to write. Please refer the above two questions.



Please refer the above questions.



It depends on you. Please refer the above questions.
You put it in so simple terms but I'm really confused about the fact that while I'm allocating one single object and giving it away, it should(?) have just one reference, but it has 3.
How am I sure that if I don't write autorelease it will get released by the object who owns it?
Because the fact that the original had an "autorelease" makes me doubt of the fact that, while I can be perfectly fine managing my own memory, the API still needs that I make a call to autorelease every now and then.

I mean, to me and my code, putting an autorelease there is exactly the same. I don't own the object, the API does, the API should release it.
Is it exactly the same for the API?
Will it make the appropriate release calls?
MatuX is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,695
Threads: 89,167
Posts: 380,423
Top Poster: BrianSlick (7,110)
Welcome to our newest member, Castlem
Powered by vBadvanced CMPS v3.1.0

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