diff --git a/Headers/gnustep/base/Notification.h b/Headers/gnustep/base/Notification.h index e6421c3f1..6b1cf1780 100644 --- a/Headers/gnustep/base/Notification.h +++ b/Headers/gnustep/base/Notification.h @@ -26,7 +26,17 @@ #include #include -@interface Notification : NSObject +@protocol Notifying +- (id ) name; +- object; +- userInfo; +@end + +@protocol NotificationPosting +- (void) postNotification: (id )notification; +@end + +@interface Notification : NSObject { id _name; id _object; @@ -40,8 +50,4 @@ object: object userInfo: info; -- (id ) name; -- object; -- userInfo; - @end diff --git a/Source/objects/Notification.h b/Source/objects/Notification.h index e6421c3f1..6b1cf1780 100644 --- a/Source/objects/Notification.h +++ b/Source/objects/Notification.h @@ -26,7 +26,17 @@ #include #include -@interface Notification : NSObject +@protocol Notifying +- (id ) name; +- object; +- userInfo; +@end + +@protocol NotificationPosting +- (void) postNotification: (id )notification; +@end + +@interface Notification : NSObject { id _name; id _object; @@ -40,8 +50,4 @@ object: object userInfo: info; -- (id ) name; -- object; -- userInfo; - @end