23 OF_ASSUME_NONNULL_BEGIN
26 #ifdef OF_HAVE_THREADS
36 typedef void (^OFNotificationCenterBlock)(
OFNotification *notification);
45 #ifndef OF_NOTIFICATION_CENTER_M
46 OF_SUBCLASSING_RESTRICTED
50 #ifdef OF_HAVE_THREADS
56 #ifdef OF_HAVE_CLASS_PROPERTIES
77 - (void)addObserver: (
id)observer
78 selector: (
SEL)selector
80 object: (nullable
id)object;
91 - (void)removeObserver: (
id)observer
92 selector: (
SEL)selector
94 object: (nullable
id)object;
110 object: (nullable
id)object
111 usingBlock: (OFNotificationCenterBlock)block;
119 - (void)removeObserver: (
id)observer;
136 object: (nullable
id)object;
147 object: (nullable
id)object
151 OF_ASSUME_NONNULL_END
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:42
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:84
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:48
A class for creating mutual exclusions.
Definition: OFMutex.h:38
A class to send and register for notifications.
Definition: OFNotificationCenter.h:49
A class to represent a notification for or from OFNotificationCenter.
Definition: OFNotification.h:42
The root class for all other classes inside ObjFW.
Definition: OFObject.h:692