Creates a notification with information and an immediate-delivery specifier, and posts it to the receiver.
Original signature is '- (void)postNotificationName:(NSString *)notificationName object:(NSString *)notificationSender userInfo:(NSDictionary *)userInfo deliverImmediately:(BOOL)deliverImmediately'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual void PostNotificationNameObjectUserInfoDeliverImmediately( NSString notificationName, NSString notificationSender, NSDictionary userInfo, bool deliverImmediately )
Public Overridable Sub PostNotificationNameObjectUserInfoDeliverImmediately ( _ notificationName As NSString, _ notificationSender As NSString, _ userInfo As NSDictionary, _ deliverImmediately As Boolean _ )
public: virtual void PostNotificationNameObjectUserInfoDeliverImmediately( NSString^ notificationName, NSString^ notificationSender, NSDictionary^ userInfo, bool deliverImmediately )
Parameters
- notificationName (NSString)
- Name of the notification to post. Must not be nil.
- notificationSender (NSString)
- Sender of the notification. May be nil.
- userInfo (NSDictionary)
- Dictionary containing additional information. May be nil.
- deliverImmediately (Boolean)
- Specifies when to deliver the notification. When NO, the receiver delivers notifications to their observers according to the suspended-notification behavior specified in the corresponding dispatch table entry. When YES, the receiver delivers the notification immediately to its observers.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)