MonobjcMonobjc Documented Class Library
NSNotificationSuspensionBehavior Enumeration
NamespacesMonobjc.FoundationNSNotificationSuspensionBehavior

These constants specify the types of notification delivery suspension behaviors.

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSNotificationSuspensionBehavior
Public Enumeration NSNotificationSuspensionBehavior
public enum class NSNotificationSuspensionBehavior
Members
MemberDescription
NSNotificationSuspensionBehaviorDrop

The server does not queue any notifications with this name and object until setSuspended: with an argument of NO is called.

Available in Mac OS X v10.0 and later.


NSNotificationSuspensionBehaviorCoalesce

The server only queues the last notification of the specified name and object; earlier notifications are dropped. In cover methods for which suspension behavior is not an explicit argument, NSNotificationSuspensionBehaviorCoalesce is the default.

Available in Mac OS X v10.0 and later.


NSNotificationSuspensionBehaviorHold

The server holds all matching notifications until the queue has been filled (queue size determined by the server), at which point the server may flush queued notifications.

Available in Mac OS X v10.0 and later.


NSNotificationSuspensionBehaviorDeliverImmediately

The server delivers notifications matching this registration irrespective of whether setSuspended: with an argument of YES has been called. When a notification with this suspension behavior is matched, it has the effect of first flushing any queued notifications. The effect is as if setSuspended: with an argument of NO were first called if the application is suspended, followed by the notification in question being delivered, followed by a transition back to the previous suspended or unsuspended state.

Available in Mac OS X v10.0 and later.


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)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)