Re: Notifications from an object's dealloc method?
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