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)
236 assert(
this != &rhs);
267 template<
class RefType>
353 T &operator [] (std::ptrdiff_t index)
const
NSStrongReference(NSStrongReference &&rhs)
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
NSStrongReference(NSObject *nsObject)
NSStrongReference & operator=(const NSStrongReference &rhs)
DerivedType * Get() const
void Reset(NSObject *object)
CFStrongReference(RefType ref, bool initRetain)
NSStrongReference(const NSStrongReference &rhs)
CFStrongReference(CFStrongReference &&rhs)
CFScopeGuard(RefType ref)
NSAutoreleasePool * fPool
DerivedType * Get() const
void Reset(NSObject *object)
NSScopeGuard(NSObject *nsObject)
CFStrongReference(const CFStrongReference &rhs)