All Manuals > LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual > 2 Objective-C Reference

NextPrevUpTopContentsIndex

coerce-to-selector

Function
Summary

Coerces its argument to an Objective-C method selector.

Package

objc

Signature

coerce-to-selector method => selector

Arguments

method

A string or selector.

Values

selector

A selector.

Description

The function coerce-to-selector returns the selector named by method. If method is a string, then the registered selector is found or a new one is registered. Otherwise method should be a foreign pointer of type sel and is returned unchanged.

This is the opposite operation to the function selector-name.

See also

sel
selector-name


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 21 Mar 2017

NextPrevUpTopContentsIndex