9#ifdef OO_DEBUG_MONITOR_ENABLED
17 static NSMutableDictionary* sStrings =
nil;
19 NSString* value =
nil;
21 if (sStrings ==
nil) {
22 sStrings = [[NSMutableDictionary alloc] init];
25 key = [NSValue valueWithPointer:string];
26 value = [sStrings objectForKey:key];
29 value = [NSString stringWithUTF8String:string];
31 [sStrings setObject:value forKey:key];
44 return [[object class] description];
49 return [object isKindOfClass:[NSString class]];
54 return [[NSString alloc] initWithFormat:format arguments:args];
59 return [object isKindOfClass:[NSDictionary class]];
64 return [dictionary objectForKey:key];
69 return [object isKindOfClass:[NSData class]];
74 return [[NSMutableData alloc] initWithCapacity:capacity];
79 [data appendBytes:bytes length:length];
94 return [[NSAutoreleasePool alloc] init];
99 id result = [NSPropertyListSerialization propertyListFromData:data
100 mutabilityOption:NSPropertyListImmutable
102 errorDescription:errStr];
105#if !OOLITE_RELEASE_PLIST_ERROR_STRINGS
OOALStringRef OOTypeDescription(OOALObjectRef object)
bool OOALIsDictionary(OOALObjectRef object)
OOALStringRef OOALStringCreateWithFormatAndArguments(OOALStringRef format, va_list args)
const struct NSAutoreleasePool * OOALAutoreleasePoolRef
void OOALMutableDataAppendBytes(OOALMutableDataRef data, const void *bytes, size_t length)
const void * OOALDataGetBytePtr(OOALDataRef data)
const struct NSString * OOALStringRef
size_t OOALDataGetLength(OOALDataRef data)
const void * OOALObjectRef
OOALObjectRef OOALDictionaryGetValue(OOALDictionaryRef dictionary, OOALObjectRef key)
bool OOALIsData(OOALObjectRef object)
OOALStringRef OOALGetConstantString(const char *string)
const struct NSDictionary * OOALDictionaryRef
bool OOALIsString(OOALObjectRef object)
OOALAutoreleasePoolRef OOALCreateAutoreleasePool(void)
struct NSData * OOALMutableDataRef
OOALMutableDataRef OOALDataCreateMutable(size_t capacity)
void OOALRelease(OOALObjectRef object)
OOALObjectRef OOALPropertyListFromData(OOALMutableDataRef data, OOALStringRef *errStr)
const struct NSData * OOALDataRef