• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trouble with performSelector afterDelay
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Trouble with performSelector afterDelay
      • From: Jens Alfke <email@hidden>
References: 
 >Trouble with performSelector afterDelay (From: "James Trankelson" <email@hidden>)
 >Re: Trouble with performSelector afterDelay (From: Jens Alfke <email@hidden>)
 >Re: Trouble with performSelector afterDelay (From: "James Trankelson" <email@hidden>)
 >Re: Trouble with performSelector afterDelay (From: Ken Thomases <email@hidden>)
 >Re: Trouble with performSelector afterDelay (From: "James Trankelson" <email@hidden>)

  • Prev by Date: Re: NSSlider and timers
  • Next by Date: Re: KVV and the missing Discard Changes button
  • Previous by thread: Re: Trouble with performSelector afterDelay
  • Next by thread: Re: Trouble with performSelector afterDelay
  • Index(es):
    • Date
    • Thread