Re: Trouble with performSelector afterDelay
Re: Trouble with performSelector afterDelay
- Subject: Re: Trouble with performSelector afterDelay
- From: "Shawn Erickson" <email@hidden>
- Date: Mon, 14 Jul 2008 16:12:36 -0700
On Mon, Jul 14, 2008 at 3:59 PM, James Trankelson <email@hidden> wrote:
> Thanks, Ken,
>
> I had a suspicion that's what was going on there, so I just added a
> few extra [Worker retain] messages before I sent the message to be
> handled. Still, the object gets released.
release != dealloc
It looks like you override release in your "Worker" object (based on
the back trace you posted). Are you thinking -[Worker release] is the
place to free resources? If so it isn't the right place. You want
-[Worker dealloc].
Review...
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html#//apple_ref/occ/intfm/NSObject/release>
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden