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

retain Function

Summary

Invokes the Objective-C retain method.

Package

objc

Signature

retain pointer => pointer

Arguments
pointer
A pointer to an Objective-C foreign object.
Values
pointer
An argument pointer.
Description

The function retain calls the Objective-C retain instance method of pointer to decrement its retain count. pointer is returned.

See also

release
autorelease
retain-count


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 18 Feb 2025 15:39:48