One Logo Pool Ball
Foundation · IOS API REFERENCE

NSMachPort

class · SDK 27.1

class NSMachPort

Members (9)

static

port

TypeScript
static portWithMachPort(machPort: number): Port
Swift declaration
class func port(withMachPort machPort: UInt32) -> Port
static · iOS 2.0+

port

TypeScript
static portWithMachPortOptions(machPort: number, f?: NSMachPort_Options): Port
Swift declaration
class func port(withMachPort machPort: UInt32, options f: NSMachPort.Options = []) -> Port
method

delegate

TypeScript
delegate(): (SDKHandle) | null
Swift declaration
func delegate() -> (any NSMachPortDelegate)?
init

init

TypeScript
static initMachPort(machPort: number): NSMachPort
Swift declaration
init(machPort: UInt32)
init · iOS 2.0+

init

TypeScript
static initMachPortOptions(machPort: number, f?: NSMachPort_Options): NSMachPort
Swift declaration
init(machPort: UInt32, options f: NSMachPort.Options = [])
method

remove

TypeScript
remove(runLoop: RunLoop, mode: RunLoop_Mode): void
Swift declaration
func remove(from runLoop: RunLoop, forMode mode: RunLoop.Mode)
method

schedule

TypeScript
schedule(runLoop: RunLoop, mode: RunLoop_Mode): void
Swift declaration
func schedule(in runLoop: RunLoop, forMode mode: RunLoop.Mode)
method

setDelegate

TypeScript
setDelegate(anObject?: (SDKHandle) | null): void
Swift declaration
func setDelegate(_ anObject: (any NSMachPortDelegate)?)
get

machPort

TypeScript
get machPort(): number
Swift declaration
var machPort: UInt32 { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSMachPort.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All Foundation types →