Talk:Welcome: Difference between revisions

Discussion page of Welcome
(removing old question that wasn't really discussion of the wiki itself)
No edit summary
Line 1: Line 1:
I wish this could be made part of theiphonewiki, it isn't user oriented, just no one filled in the development stuff. --[[User:Geohot|Geohot]]
The NSAutoreleasePool class is a thin wrapper around the '''NSPushAutoreleasePool''' and '''NSPopAutoreleasePool''' functions.
:Sorry, geo. I'd like to keep this wiki out of the blazing glory of spam. [[User:Dustin Howett|Dustin Howett]] 04:22, 8 November 2009 (UTC)


== How to edit the Navbox? ==
<source lang="objc">
#ifdef __cplusplus
extern "C" {
#endif
void *NSPushAutoreleasePool(NSUInteger capacity);
void NSPopAutoreleasePool(void* token);
#ifdef __cplusplus
}
#endif
</source>


like:
Example:
{{Navbox Frameworks}}


<source lang="objc">
static void MyMethod()
{
    void *pool = NSPushAutoreleasePool(0);
    [[[NSObject alloc] init] autorelease];
    NSPopAutoreleasePool(pool);
}
</source>


:The navbox is automatically generated based on the framework categories. Look at the category/class transclusions on the framework pages. [[User:Dustin Howett|Dustin Howett]] ([[User talk:Dustin Howett|talk]]) 19:12, 24 July 2013 (PDT)
The "capacity" argument of NSPushAutoreleasePool only serves as a hint. It is unused in the current implementation.


== Ideas for improving the organization of the wiki ==
{{occlass|library=Foundation.framework}}
 
"I just think the biggest challenge is to find a way to properly organize what can be found in all the iOS versions and what can't. Once we find a nice way to do that we can tackle the classes and then sort the open source projects in a similar way." "Just stating "randomMethod was implemented/deprecated in iOS X" might work for now." We could make a [[Changes in iOS 7]] page.
 
"It would be ideal if we could somehow 'copy' Apple's docs. It would be handy to see things like a class' superclass right on the page, instead of going to the hierarchy tree page." "Could easily just add that manually - add a note to the top of the page in italics."
 
[[User:Britta|Britta]] ([[User talk:Britta|talk]]) 19:36, 1 January 2014 (PST)

Revision as of 09:41, 2 February 2017

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

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

Example:

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

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