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