Mac Guides | Samples

MonoMac.Foundation.NSKeyedUnarchiver.WeakDelegate Property

An object that can respond to the delegate protocol for this type

Syntax

[get: MonoMac.Foundation.Export("delegate", MonoMac.ObjCRuntime.ArgumentSemantic.Assign)]
[set: MonoMac.Foundation.Export("setDelegate:", MonoMac.ObjCRuntime.ArgumentSemantic.Assign)]
public virtual NSObject WeakDelegate { get; set; }

Value

The instance that will respond to events and data requests.

This value can be null.

Remarks

The delegate instance assigned to this object will be used to handle events or provide data on demand to this class.

When setting the Delegate or WeakDelegate values events will be delivered to the specified instance instead of being delivered to the C#-style events

Methods must be decorated with the [Export ("selectorName")] attribute to respond to each method from the protocol. Alternatively use the Delegate method which is strongly typed and does not require the [Export] attributes on methods.

Requirements

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