Difference between revisions of "Category:Documented Classes"
m (Created page with 'List of all classes, or group of object-oriented functions, that are referenced in this wiki.') |
|||
Line 1: | Line 1: | ||
− | + | The NSAutoreleasePool class is a thin wrapper around the '''NSPushAutoreleasePool''' and '''NSPopAutoreleasePool''' functions. | |
+ | |||
+ | <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}} |
Revision as of 09:46, 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.
Pages in category "Documented Classes"
The following 154 pages are in this category, out of 154 total.
C
- CAAtom
- CABackdropLayer
- CAFilter
- CALayerHost
- CATransition
- CFKeyedArchiverUID
- CFLog
- CFNotificationCenter
- CFRunLoop
- CFUserNotification
- CKMadridService
- CPDistributedMessagingCenter
- CPDistributedNotificationCenter
- CPExclusiveLock
- CPLRUDictionary
- CPMIGServerSource
- CPNetworkObserver
- CPPhoneNumber
- CPRegularExpression
- CTCall
- CTIndicators
I
M
N
- NCMaterialView
- NCPlusDStyling
- NCVibrantHighContrastStyling
- NCVibrantLightStyling
- NCVibrantPrimaryStyling
- NCVibrantRuleStyling
- NCVibrantSecondaryAlternateStyling
- NCVibrantSecondaryStyling
- NCVibrantStyling
- NCVibrantWidgetPrimaryHighlightStyling
- NCVibrantWidgetPrimaryStyling
- NCVibrantWidgetQuaternaryStyling
- NCVibrantWidgetSecondaryHighlightStyling
- NCVibrantWidgetSecondaryStyling
- NCVibrantWidgetTertiaryStyling
- NSAutoreleasePool
- NSMultiReadUniWriteLock
- NSSet5413174
- NSURL
S
- SBAccelerometerInterface
- SBAppContextHostManager
- SBAppContextHostView
- SBApplication
- SBAppSliderController
- SBAppStatusBarManager
- SBAppSwitcherController
- SBAppSwitcherModel
- SBAwayController
- SBBrightnessController
- SBBulletinBannerController
- SBClockApplicationIcon
- SBDisplay
- SBDisplayStack
- SBFolderController
- SBGestureRecognizer
- SBIcon
- SBIconList
- SBIconListView
- SBIconModel
- SBIconView
- SBIconViewMap
- SBLockScreenViewController
- SBRemoteNotificationServer
- SBSAccelerometer
- SBSRelaunchAction
- SBSRestartRenderServerAction
- SBStatusBarController
- SBSyncController
- SpringBoard
U
- UIActivity
- UIAlertController
- UIAlertView
- UIApplication
- UIBackdropView
- UIBarButtonItem
- UIBezierPath
- UIBookViewController
- UIButton
- UICalloutView
- UICheckeredPatternView
- UIColor
- UIColor/fr
- UIColor/th
- UIDevice
- UIFont
- UIFont/fr
- UIFontChooser
- UIGestureRecognizer
- UIGlassButton
- UIHardware
- UIImage
- UIImageBuffer
- UIImagePickerController
- UIITunesStoreURLResolver
- UIKBTree
- UIKeyboardImpl
- UIKeyboardPreferencesController
- UINavigationButton
- UIPasscodeField
- UIPeripheralHostView
- UIProgressHUD
- UISearchBar
- UISplitViewController
- UISwitch
- UITabBarController
- UITableView
- UITableViewCell
- UITableViewCellLayoutManager
- UITextField
- UITexturedButton
- UIToolbar
- UITwoSidedAlertController
- UIView
- UIViewAnimationState
- UIViewController
- UIWindow