Include <objects/Notification.h>

(NSNotification): Add placeholder ivars so our instance size matches
that of the behavior class that will be added.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1322 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-03-31 22:17:01 +00:00
parent b0fce5a145
commit 8ef23c9aad

View file

@ -25,11 +25,20 @@
#define __NSNotification_h_OBJECTS_INCLUDE
#include <objects/stdobjects.h>
#include <objects/Notification.h>
@class NSString;
@class NSDictionary;
@interface NSNotification : NSObject
{
/* Make the instance size of this class match exactly the instance
size of Notification. Thus, behavior_class_add_class() will not
have to increase the instance size of NSNotification, and
NSNotification can safely be subclassed. */
char _NSNotification_placeholder[(sizeof(struct NSObject)
- sizeof(struct Notification))];
}
@end
/* Put this in a category to avoid unimportant errors due to behaviors. */