12#ifndef ROOT_CocoaUtils
13#define ROOT_CocoaUtils
18#include <Foundation/Foundation.h>
30template<
class DerivedType>
93 DerivedType *
Get()
const
101 NSObject *obj = [
object retain];
117template<
class DerivedType>
192template<
class RefType>
203 if (initRetain && ref)
236 assert(
this != &rhs);
267template<
class RefType>
AutoreleasePool(const AutoreleasePool &rhs)
NSAutoreleasePool * fPool
AutoreleasePool(bool delayCreation=false)
AutoreleasePool & operator=(const AutoreleasePool &rhs)
CFScopeGuard(RefType ref)
CFScopeGuard(const CFScopeGuard &rhs)
CFScopeGuard & operator=(const CFScopeGuard &rhs)
CFStrongReference(RefType ref, bool initRetain)
CFStrongReference(const CFStrongReference &rhs)
CFStrongReference(CFStrongReference &&rhs)
CFStrongReference & operator=(const CFStrongReference &rhs)
DerivedType * Get() const
NSScopeGuard & operator=(const NSScopeGuard &rhs)
NSScopeGuard(const NSScopeGuard &rhs)
NSScopeGuard(NSObject *nsObject)
void Reset(NSObject *object)
NSStrongReference(NSObject *nsObject)
NSStrongReference(const NSStrongReference &rhs)
NSStrongReference & operator=(const NSStrongReference &rhs)
void Reset(NSObject *object)
DerivedType * Get() const
NSStrongReference(NSStrongReference &&rhs)
T & operator[](std::ptrdiff_t index) const
ScopedArray(const ScopedArray &rhs)
ScopedArray & operator=(const ScopedArray &rhs)
Namespace for new ROOT classes and functions.