Selector Selector Class


Represents an Objective-C selector in managed code.

public class Selector : IEquatable<ObjCRuntime.Selector>, ObjCRuntime.INativeObject
type Selector = class
    interface IEquatable<Selector>
    interface INativeObject


Selector(IntPtr) Selector(IntPtr)

Creates a selector from the unmanaged pointer to the Objective-C selector.

Selector(String) Selector(String)

Creates a new selector and registers it with the Objective-C runtime.


Handle Handle

Handle (pointer) to the unmanaged selector representation.

Name Name

Name of this selector.


Equals(Selector) Equals(Selector)

Compares two selectors for equality.

Equals(Object) Equals(Object)

Compares two objects for equality

FromHandle(IntPtr) FromHandle(IntPtr)

Creates a managed selector wrapper based on the native handle to it.

GetHandle(String) GetHandle(String)

Returns the handle to the specified Objective-C selector.

GetHashCode() GetHashCode()

Returns the Selector's hash code.

Register(IntPtr) Register(IntPtr)

Creates a new Selector instance for the specified Objective-C selector.


Equality(Selector, Selector) Equality(Selector, Selector)

Determines if two Selector objects are equal by comparing their native handles.

Inequality(Selector, Selector) Inequality(Selector, Selector)

Determines if two Selector objects are different by comparing their native handles.

Applies to