objc

Instance Methods
<RetainProtocol> Protocol Reference

Protocol for retaining and releasing objects. More...

#import <Foundation/Foundation.h>

Inheritance diagram for <RetainProtocol>:
Inheritance graph
[legend]

Instance Methods

(id- retain
 Increases the retain count of the receiver. More...
 
(void) - release
 Decreases the retain count of the receiver. More...
 

Detailed Description

Protocol for retaining and releasing objects.

The RetainProtocol defines the minimal interface that objects must implement to provide retain and release functionality.

Definition at line 18 of file Retain+Protocol.h.

Method Documentation

◆ release()

- (void) release
required

Decreases the retain count of the receiver.

Sending a release message to an object decreases its retain count by one. If the retain count becomes zero, the object is deallocated.

Reimplemented in NXObject.

◆ retain()

- (id) retain
required

Increases the retain count of the receiver.

Returns
The receiver, with its retain count incremented.

Sending a retain message to an object increases its retain count by one.

Reimplemented in NXObject.


The documentation for this protocol was generated from the following file: