Re: Memory allocation questions
Re: Memory allocation questions
- Subject: Re: Memory allocation questions
- From: Nathan Day <email@hidden>
- Date: Tue, 30 Jul 2002 23:50:12 +0930
The point is if you just release instead of autorelease it could fail,
though you could of cause also just retain the newSprocket before you
release the mainSprocket.
On Friday, January 2, 1970, at 09:48 PM, Roarke Lynch wrote:
Even if mainSprocket and newSprocket are the same object, this
could should not cause problems. By autoreleaseing, not releasing,
mainSprocket, it might not get dealloc'd, An object does not get
dealloc'd until it's reference count is zero. If they are the same
object, at the end of the eventLoop, it's ref count will remain the the
same as before this method was called.
Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.