• 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: Notifications from an object's dealloc method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notifications from an object's dealloc method?


  • Subject: Re: Notifications from an object's dealloc method?
  • From: Jonathan Hendry <email@hidden>
  • Date: Fri, 6 Jul 2001 21:57:12 -0500

On Friday, July 6, 2001, at 09:47 , Jonathan Wight wrote:

100% -- I'm actually calling another method inside my dealloc and that
method is the one that sends the notification. Everything else in that
calling method is working - just the darn notification fails.

Jon.

Hm. Have you tried using

- (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay inModes:(NSArray *)modes;

from an NSObject category in NSRunLoop.h?

Dunno if it'll work, but it could be worth a shot.

- Jon


On 07/06/2001 21:42, "Michael Dagate" <email@hidden> wrote:

Are you sure that your dealloc method is getting called? You might want
to set a breakpoint just to be certain.

On Friday, July 6, 2001, at 09:31 PM, Jonathan Wight wrote:

I have an object that is trying to send a notification message from it's
dealloc method. Unfortunately the notification handler never receives
the
notification (although it does if I send the message from outside the
dealloc method).

Is it legal to send notifications from the dealloc function? I am
trying to
send the message _before_ I called [super dealloc].

Jon.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Re: Notifications from an object's dealloc method? (From: Jonathan Wight <email@hidden>)

  • Prev by Date: Re: Notifications from an object's dealloc method?
  • Next by Date: Re: NSDictionary: enumerating reversely?
  • Previous by thread: Re: Notifications from an object's dealloc method?
  • Next by thread: Filling TableView with NSTableColumns
  • Index(es):
    • Date
    • Thread