mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
0b0329b2f6
commit
153b84d956
2 changed files with 22 additions and 10 deletions
|
@ -26,7 +26,17 @@
|
||||||
#include <objects/KeyedCollecting.h>
|
#include <objects/KeyedCollecting.h>
|
||||||
#include <objects/NotificationDispatcher.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 _name;
|
||||||
id _object;
|
id _object;
|
||||||
|
@ -40,8 +50,4 @@
|
||||||
object: object
|
object: object
|
||||||
userInfo: info;
|
userInfo: info;
|
||||||
|
|
||||||
- (id <String>) name;
|
|
||||||
- object;
|
|
||||||
- userInfo;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -26,7 +26,17 @@
|
||||||
#include <objects/KeyedCollecting.h>
|
#include <objects/KeyedCollecting.h>
|
||||||
#include <objects/NotificationDispatcher.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 _name;
|
||||||
id _object;
|
id _object;
|
||||||
|
@ -40,8 +50,4 @@
|
||||||
object: object
|
object: object
|
||||||
userInfo: info;
|
userInfo: info;
|
||||||
|
|
||||||
- (id <String>) name;
|
|
||||||
- object;
|
|
||||||
- userInfo;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue