discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotification and subclasses


From: Richard Frith-Macdonald
Subject: Re: NSNotification and subclasses
Date: Fri, 9 Aug 2002 08:54:31 +0100

On Friday, August 9, 2002, at 12:42 AM, Alexander Malmberg wrote:

Hi,

Recently, NSNotificationCenter changed to always create its own
NSNotification (GSNotification in practice) object. This broke using
custom sub-classes of NSNotificaion to send extra information outside
the userInfo dictionary, and caused all apps to crash. The text about
sub-classes in:

http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/ObjC_classic/
Classes/NSNotification.html

suggests that you're supposed to be able to do this.

Thanks ... bug crept in when changing our implementation to be a class cluster (like MacOS-X) and to handle retain/release/autorelease sequencing like the MacOS-X implementation (required for some uses of notification posting within
dealloc methods of objects).

Should be fixed now in CVS.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]