CFStringRef createCFStringFor4CC (UInt32 errorCode) {
errorCode = CFSwapInt32HostToBig (errorCode);
return CFStringCreateWithFormat (
kCFAllocatorDefault, NULL,
(CFStringRef) @"%4.4s", (char*)&errorCode);
}
- (NSString*) stringFor4CC: (UInt32) errorCode {
errorCode = CFSwapInt32HostToBig (errorCode);
return [NSString stringWithFormat: @"%4.4s", (char*)&errorCode];
}