On 25 Feb 2008, at 23:15, Jerry Krinock wrote:

I presume that sending a notification to a deallocced object causes a crash?

Invariably! ;)

Oh, yes, it will bite you. Says so right in the documentation of - [NSDocument close].

Funny how I read that so many times last week when overriding - canCloseDocument: but then forget immediately.

When I had a problem like this one time I ended my -dealloc like this:

   [super dealloc] ;
   self = nil ;
}

I'll try it, just looking for a 'clean' implementation, so I unregister at the right point.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to