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 - 01 Dec 2021 19:38:32