ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
core
macosx
src
CocoaUtils.mm
Go to the documentation of this file.
1
// @(#)root/graf2d:$Id$
2
// Author: Timur Pocheptsov 6/12/2011
3
4
/*************************************************************************
5
* Copyright (C) 1995-2012, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#include "
CocoaUtils.h
"
13
14
namespace
ROOT
{
15
namespace
MacOSX {
16
namespace
Util {
17
18
//______________________________________________________________________________
19
AutoreleasePool::AutoreleasePool
(
bool
delayCreation
/* = false*/
)
20
: fPool(delayCreation ? nil : [[NSAutoreleasePool alloc]
init
])
21
{
22
}
23
24
//______________________________________________________________________________
25
AutoreleasePool::~AutoreleasePool
()
26
{
27
[
fPool
release];
28
}
29
30
//______________________________________________________________________________
31
void
AutoreleasePool::Reset
()
32
{
33
if
(
fPool
)
34
[
fPool
release];
35
36
fPool
= [[NSAutoreleasePool alloc] init];
37
}
38
39
}
//Util
40
}
//MacOSX
41
}
//ROOT
ROOT::MacOSX::Util::AutoreleasePool::Reset
void Reset()
Definition:
CocoaUtils.mm:31
ROOT
Namespace for new ROOT classes and functions.
Definition:
ROOT.py:1
CocoaUtils.h
ROOT::MacOSX::Util::AutoreleasePool::fPool
NSAutoreleasePool * fPool
Definition:
CocoaUtils.h:178
ROOT::MacOSX::Util::AutoreleasePool::AutoreleasePool
AutoreleasePool(bool delayCreation=false)
Definition:
CocoaUtils.mm:19
init
static Int_t init()
Definition:
RooClassFactory.cxx:53
ROOT::MacOSX::Util::AutoreleasePool::~AutoreleasePool
~AutoreleasePool()
Definition:
CocoaUtils.mm:25