Difference between revisions of "Category:Documented Classes"

From iPhone Development Wiki
Jump to: navigation, search
m (Reverted edits by Testatest (talk) to last revision by KennyTM~)
 
Line 1: Line 1:
The NSAutoreleasePool class is a thin wrapper around the '''NSPushAutoreleasePool''' and '''NSPopAutoreleasePool''' functions.
+
List of all classes, or group of object-oriented functions, that are referenced in this wiki.
 
 
<source lang="objc">
 
#ifdef __cplusplus
 
extern "C" {
 
#endif
 
void *NSPushAutoreleasePool(NSUInteger capacity);
 
void NSPopAutoreleasePool(void* token);
 
#ifdef __cplusplus
 
}
 
#endif
 
</source>
 
 
 
Example:
 
 
 
<source lang="objc">
 
static void MyMethod()
 
{
 
    void *pool = NSPushAutoreleasePool(0);
 
    [[[NSObject alloc] init] autorelease];
 
    NSPopAutoreleasePool(pool);
 
}
 
</source>
 
 
 
The "capacity" argument of NSPushAutoreleasePool only serves as a hint. It is unused in the current implementation.
 
 
 
{{occlass|library=Foundation.framework}}
 

Latest revision as of 10:56, 2 February 2017

List of all classes, or group of object-oriented functions, that are referenced in this wiki.

Pages in category "Documented Classes"

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