29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
-
+
|
/**
* @class OFNotification OFNotification.h ObjFW/OFNotification.h
*
* @brief A class to represent a notification for or from
* @ref OFNotificationCenter.
*/
OF_SUBCLASSING_RESTRICTED
@interface OFNotification: OFObject <OFCopying>
{
OFNotificationName _name;
id _Nullable _object;
OFDictionary *_Nullable _userInfo;
OF_RESERVE_IVARS(OFNotification, 4)
}
/**
* @brief The name of the notification.
*/
@property (readonly, nonatomic) OFNotificationName name;
|
104
105
106
107
108
109
110
111
112
113
|
104
105
106
107
108
109
110
111
112
113
114
115
|
+
+
|
* @param userInfo Additional information for the notification
* @return An initialized OFNotification
*/
- (instancetype)initWithName: (OFNotificationName)name
object: (nullable id)object
userInfo: (nullable OFDictionary *)userInfo
OF_DESIGNATED_INITIALIZER;
- (instancetype)init OF_UNAVAILABLE;
@end
OF_ASSUME_NONNULL_END
|