+ (OBContext *) currentContext

returns the context associated with the current thread

+ (BOOL) isMainThread

YES if called on the main thread

+ (OBContext *) mainThreadContext

returns the context associated with the main thread of the application

+ (void) mungeDeallocatedObjects:(BOOL)trapObjects

When enabled, instance memory is never freed but instead filled with a pattern that will be tested on demand or when the application quits

+ (ULONG) runtimeRevision
+ (ULONG) runtimeVersion
+ (void) testAllTrackedObjects

Tests coherency of trapped/leaked objects

+ (void) trapDeallocatedObjects:(BOOL)trapObjects

Debug-only. When enabled, memory used by all object instances is not freed until the application quits. Calling any methods on an object that was already deallocated will result in a debug message and a callstack trace.

+ (id) userContext

returns the user context object associated with the current thread

- (id) initWithApplication:(OBApplication *)app

used to setup a context as soon as a new thread is created

- (id) initWithApplication:(OBApplication *)app userContext:(id)context
- (void) setUserContext:(id)object

sets a user's context object

- (void) threadExit

called by the thread exit routines, the instance is not supposed to live past this point