Instance Method

autorelease

Decrements the receiver’s retain count at the end of the current autorelease pool block.

Required.

Declaration

- (instancetype)autorelease;

Return Value

self.

Discussion

For more information about autorelease pool blocks, see Advanced Memory Management Programming Guide.

Special Considerations

Instead of using manual reference counting, you should adopt ARC—see Transitioning to ARC Release Notes.

See Also

Obsolete Methods

retain

Increments the receiver’s reference count.

Required.

release

Decrements the receiver’s reference count.

Required.

retainCount

Do not use this method.

Required.

zone

Zones are deprecated and ignored by most classes that have it as a parameter.

Required.