mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
b0fce5a145
commit
8ef23c9aad
1 changed files with 9 additions and 0 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue