Tries to find the relevant method, and returns its signature.
objc
objc-class-method-signature class-spec method-name => arg-types, result-type, type-encoding
class-spec⇩ |
A string, an objc-object-pointer or an objc-class pointer. |
method-name⇩ |
A string. |
arg-types⇩ |
A list. |
result-type |
A foreign type descriptor. |
type-encoding |
A string. |
The function objc-class-method-signature
tries to find the relevant method, and returns its signature.
class-spec needs to be a string naming a class, an objc-object-pointer foreign pointer (which specifies its class), or an objc-class pointer.
method-name specifies the method name. It can be either a class method or an instance method.
The first return value is a list of the argument types (that is, foreign types). Note that the first and second arguments of all Objective-C methods are the object/class and the method selector (name). These are are typed as objc-object-pointer and sel, so arg-types always starts with these two symbols.
The second return value is the result type of the method.
The third return value is a string which is the type encoding of the signature of the method, as stored internally by the Objective-C runtime system.
If objc-class-method-signature
fails to locate the method, it returns nil
.
LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 01 Dec 2021 19:38:32