Re: [Newbie] mem errors cont.
Re: [Newbie] mem errors cont.
- Subject: Re: [Newbie] mem errors cont.
- From: Thomas Deniau <email@hidden>
- Date: Sun, 3 Aug 2003 13:56:20 +0200
On Sun, 3 Aug 2003 07:48:38 -0400, Michael Hanna wrote:
>
No, not explicitly. Why do I need to?
Cf.
http://www.stepwise.com/Articles/Technical/HoldMe.html
>
Does executing another method
>
somehow decrement the objects' reference counter?
No
>
At what point does
>
it's reference count get decremented?
When the autorelease pool gets released or when you explicitly release
the object.
>
Does an NSLog reference
>
decrement an object's reference count?
No
>
In this program I'm not using
>
an Autorelease Pool. Sorry way too many questions in here..
If you use the Application Kit (I believe you do since you're in a
-(IBAction)) then you ARE using an autorelease pool, it is
automatically created for you, and gets released in the event loop.
--
Thomas Deniau
"Unix is user friendly. It's just selective when choosing friends."
_______________________________________________
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.