Mac Guides | Samples

MonoMac.Foundation.NSNotification Class

Inter-application messages that are broadcast on the NSNotificationCenter.

See Also: NSNotification

Syntax

[MonoMac.Foundation.Register("NSNotification", true)]
public class NSNotification : NSObject

Remarks

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.Foundation.NSNotification are listed below.

See Also: NSObject

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes when the derived class has an [Export] constructor.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
NameString. The name given to this notification.
[read-only]
ObjectNSObject. The object payload for the notification.
[read-only]
UserInfoNSDictionary. The optional dictionary payload for the notification.

Public Methods

static
FromName(String, NSObject) : NSNotification
Creates a new NSNotification with a name and an object payload.
static
FromName(String, NSObject, NSDictionary) : NSNotification
Creates a new NSNotification with a name, an object and a dictionary payload.

Protected Methods

override
Dispose(Boolean)
Releases the resourced used by the NSNotification object.