User talk:Kirb: Difference between revisions

Discussion page of User:Kirb
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The NSAutoreleasePool class is a thin wrapper around the '''NSPushAutoreleasePool''' and '''NSPopAutoreleasePool''' functions.
''"filling gaps in hbang tweaks' ios compatibility"''


<source lang="objc">
Yayyyyyy thanks. [[User:Britta|Britta]] ([[User talk:Britta|talk]]) 04:39, 4 June 2014 (PDT)
#ifdef __cplusplus
:Sure thing! [[User:Kirb|kirb]] ([[User talk:Kirb|talk]]) 04:42, 4 June 2014 (PDT)
extern "C" {
Thanks for the edit! [[User:Camro|Camro]] ([[User talk:Camro|talk]]) 10:43, 8 November 2017 (EST)
#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 03:44, 9 November 2017

"filling gaps in hbang tweaks' ios compatibility"

Yayyyyyy thanks. Britta (talk) 04:39, 4 June 2014 (PDT)

Sure thing! kirb (talk) 04:42, 4 June 2014 (PDT)

Thanks for the edit! Camro (talk) 10:43, 8 November 2017 (EST)