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

current-super Local Macro

Summary

Allows Objective-C methods to invoke their superclass's methods.

Package

objc

Signature

current-super => super-value

Values
super-value
An opaque value.
Description

The local macro current-super returns a value which can be passed to invoke to call a method in the superclass of the current method definition (like super in Objective-C). current-super can also be passed to can-invoke-p. When used within a define-objc-method form, instance methods in the superclass are invoked and when used within a define-objc-class-method form, class methods are invoked. super-value has dynamic extent and it is an error to use current-super in any other contexts.

Examples

See 1.4.5 Invoking methods in the superclass.

See also

define-objc-method
define-objc-class-method
invoke
can-invoke-p


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 01 Dec 2021 19:38:32