mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(Notifying): New protocol.
(NotificationPosting): New protocol. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1110 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8e71e638a8
commit
4275c2c40d
2 changed files with 22 additions and 10 deletions
|
@ -26,7 +26,17 @@
|
|||
#include <objects/KeyedCollecting.h>
|
||||
#include <objects/NotificationDispatcher.h>
|
||||
|
||||
@interface Notification : NSObject
|
||||
@protocol Notifying
|
||||
- (id <String>) name;
|
||||
- object;
|
||||
- userInfo;
|
||||
@end
|
||||
|
||||
@protocol NotificationPosting
|
||||
- (void) postNotification: (id <Notifying>)notification;
|
||||
@end
|
||||
|
||||
@interface Notification : NSObject <Notifying>
|
||||
{
|
||||
id _name;
|
||||
id _object;
|
||||
|
@ -40,8 +50,4 @@
|
|||
object: object
|
||||
userInfo: info;
|
||||
|
||||
- (id <String>) name;
|
||||
- object;
|
||||
- userInfo;
|
||||
|
||||
@end
|
||||
|
|
|
@ -26,7 +26,17 @@
|
|||
#include <objects/KeyedCollecting.h>
|
||||
#include <objects/NotificationDispatcher.h>
|
||||
|
||||
@interface Notification : NSObject
|
||||
@protocol Notifying
|
||||
- (id <String>) name;
|
||||
- object;
|
||||
- userInfo;
|
||||
@end
|
||||
|
||||
@protocol NotificationPosting
|
||||
- (void) postNotification: (id <Notifying>)notification;
|
||||
@end
|
||||
|
||||
@interface Notification : NSObject <Notifying>
|
||||
{
|
||||
id _name;
|
||||
id _object;
|
||||
|
@ -40,8 +50,4 @@
|
|||
object: object
|
||||
userInfo: info;
|
||||
|
||||
- (id <String>) name;
|
||||
- object;
|
||||
- userInfo;
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue