Category:Documented Classes

Category page
Revision as of 09:46, 2 February 2017 by Testatest (talk | contribs)

The NSAutoreleasePool class is a thin wrapper around the NSPushAutoreleasePool and NSPopAutoreleasePool functions.

#ifdef __cplusplus
extern "C" {
void *NSPushAutoreleasePool(NSUInteger capacity);
void NSPopAutoreleasePool(void* token);
#ifdef __cplusplus


static void MyMethod()
    void *pool = NSPushAutoreleasePool(0);
    [[[NSObject alloc] init] autorelease];

The "capacity" argument of NSPushAutoreleasePool only serves as a hint. It is unused in the current implementation.

Pages in category "Documented Classes"

The following 157 pages are in this category, out of 157 total.