Function

sel_getName(_:)

Returns the name of the method specified by a given selector.

Declaration

func sel_getName(_ sel: Selector) -> UnsafePointer<Int8>

Parameters

aSelector

A pointer of type SEL. Pass the selector whose name you wish to determine.

Return Value

A C string indicating the name of the selector.

See Also

Working with Selectors

func sel_registerName(UnsafePointer<Int8>) -> Selector

Registers a method with the Objective-C runtime system, maps the method name to a selector, and returns the selector value.

func sel_getUid(UnsafePointer<Int8>) -> Selector

Registers a method name with the Objective-C runtime system.

func sel_isEqual(Selector, Selector) -> Bool

Returns a Boolean value that indicates whether two selectors are equal.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software