Table of Contents

Class ObjC.Class

Namespace
Xui.Runtime.MacOS
Assembly
Xui.Runtime.MacOS.dll

Abstracts operations on Objective-C Class object.

public class ObjC.Class
Inheritance
ObjC.Class
Inherited Members

Constructors

Class(nint, string)

public Class(nint lib, string name)

Parameters

lib nint
name string

Class(string, nint)

public Class(string name, nint id)

Parameters

name string
id nint

Fields

AllocSel

public static readonly ObjC.Sel AllocSel

Field Value

ObjC.Sel

InitSel

public static readonly ObjC.Sel InitSel

Field Value

ObjC.Sel

Properties

Id

public nint Id { get; }

Property Value

nint

Name

public string Name { get; }

Property Value

string

Methods

Alloc()

public nint Alloc()

Returns

nint

Extend(string, int)

Creates a runtime derived class. Under the hood calls into objc_allocateClassPair https://developer.apple.com/documentation/objectivec/1418559-objc_allocateclasspair?language=objc

public ObjC.Builder Extend(string name, int extraBytes = 0)

Parameters

name string
extraBytes int

Returns

ObjC.Builder

New()

public nint New()

Returns

nint

Operators

implicit operator nint(Class)

public static implicit operator nint(ObjC.Class cls)

Parameters

cls ObjC.Class

Returns

nint