54- (void) registerClient:(
id<OOGraphicsResetClient>)client
59 [clients addObject:[NSValue valueWithPointer:client]];
64- (void) unregisterClient:(
id<OOGraphicsResetClient>)client
66 [clients removeObject:[NSValue valueWithPointer:client]];
72 NSEnumerator *clientEnum =
nil;
77 OOLog(
@"rendering.reset.start",
@"%@",
@"Resetting graphics state.");
83 for (clientEnum = [
clients objectEnumerator]; (client = [[clientEnum nextObject] pointerValue]); )
87 [client resetGraphicsState];
89 @catch (NSException *exception)
91 OOLog(
kOOLogException,
@"***** EXCEPTION -- %@ : %@ -- ignored during graphics reset.", [exception name], [exception reason]);
96 OOLog(
@"rendering.reset.end",
@"%@",
@"End of graphics state reset.");
102@implementation OOGraphicsResetManager (Singleton)
111+ (id) allocWithZone:(NSZone *)inZone