Foundation.NSObject Extension

Location

 

AfterConstruction

 

func AfterConstruction()

BeforeDestruction

 

func BeforeDestruction()

ClassInfo

 

static func ClassInfo() -> Pointer

ClassName

 

static func ClassName() -> ShortString

ClassNameIs

 

static func ClassNameIs(_ Name: String) -> Boolean

Parameters:

  • Name:

ClassParent

 

static func ClassParent() -> TClass

ClassType

 

func ClassType() -> TClass

CleanupInstance

 

func CleanupInstance()

DefaultHandler

 

func DefaultHandler(_ Message: lifetimestrategy(void)NSObject)

Parameters:

  • Message:

Destroy

 

func Destroy()

Dispatch

 

func Dispatch(_ Message: lifetimestrategy(void)NSObject)

Parameters:

  • Message:

FieldAddress

 

func FieldAddress(_ Name: ShortString) -> Pointer

Parameters:

  • Name:

Free

 

func Free()

FreeInstance

 

func FreeInstance()

GetInterface

 

func GetInterface(_ IID: TGUID, _ Obj: lifetimestrategy(void)NSObject) -> Boolean

Parameters:

  • IID:
  • Obj:

GetInterfaceEntry

 

static func GetInterfaceEntry(_ IID: TGUID) -> PInterfaceEntry

Parameters:

  • IID:

GetInterfaceTable

 

static func GetInterfaceTable() -> PInterfaceTable

InheritsFrom

 

static func InheritsFrom(_ AClass: TClass) -> Boolean

Parameters:

  • AClass:

InitInstance

 

static func InitInstance(_ Instance: Pointer) -> TObject

Parameters:

  • Instance:

InstanceClassName

 

func InstanceClassName() -> String

InstanceSize

 

static func InstanceSize() -> Int32

MethodAddress

 

static func MethodAddress(_ Name: ShortString) -> Pointer

Parameters:

  • Name:

MethodName

 

static func MethodName(_ Address: Pointer) -> ShortString

Parameters:

  • Address:

NewInstance

 

static func NewInstance() -> TObject

SafeCallException

 

func SafeCallException(_ ExceptObject: TObject, _ ExceptAddr: Pointer) -> HResult

Parameters:

  • ExceptObject:
  • ExceptAddr:

 

ClassInfo

 

static func ClassInfo() -> Pointer

ClassName

 

static func ClassName() -> ShortString

ClassNameIs

 

static func ClassNameIs(_ Name: String) -> Boolean

Parameters:

  • Name:

ClassParent

 

static func ClassParent() -> TClass

GetInterfaceEntry

 

static func GetInterfaceEntry(_ IID: TGUID) -> PInterfaceEntry

Parameters:

  • IID:

GetInterfaceTable

 

static func GetInterfaceTable() -> PInterfaceTable

InheritsFrom

 

static func InheritsFrom(_ AClass: TClass) -> Boolean

Parameters:

  • AClass:

InitInstance

 

static func InitInstance(_ Instance: Pointer) -> TObject

Parameters:

  • Instance:

InstanceSize

 

static func InstanceSize() -> Int32

MethodAddress

 

static func MethodAddress(_ Name: ShortString) -> Pointer

Parameters:

  • Name:

MethodName

 

static func MethodName(_ Address: Pointer) -> ShortString

Parameters:

  • Address:

NewInstance

 

static func NewInstance() -> TObject

 

AfterConstruction

 

func AfterConstruction()

BeforeDestruction

 

func BeforeDestruction()

ClassType

 

func ClassType() -> TClass

CleanupInstance

 

func CleanupInstance()

DefaultHandler

 

func DefaultHandler(_ Message: lifetimestrategy(void)NSObject)

Parameters:

  • Message:

Destroy

 

func Destroy()

Dispatch

 

func Dispatch(_ Message: lifetimestrategy(void)NSObject)

Parameters:

  • Message:

FieldAddress

 

func FieldAddress(_ Name: ShortString) -> Pointer

Parameters:

  • Name:

Free

 

func Free()

FreeInstance

 

func FreeInstance()

GetInterface

 

func GetInterface(_ IID: TGUID, _ Obj: lifetimestrategy(void)NSObject) -> Boolean

Parameters:

  • IID:
  • Obj:

InstanceClassName

 

func InstanceClassName() -> String

SafeCallException

 

func SafeCallException(_ ExceptObject: TObject, _ ExceptAddr: Pointer) -> HResult

Parameters:

  • ExceptObject:
  • ExceptAddr: