X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/d825b6d4479ad6bf94804a628bf8f424fd04ee09..8dad8db6544423018cfe3496b906af39bb3b3fbf:/ITCarbonSupport.m diff --git a/ITCarbonSupport.m b/ITCarbonSupport.m new file mode 100755 index 0000000..ed6a35c --- /dev/null +++ b/ITCarbonSupport.m @@ -0,0 +1,9 @@ +#import "ITCarbonSupport.h" + +NSString *NSStringFromFourCharCode(FourCharCode code) { + return [NSString stringWithUTF8String:&code]; +} + +FourCharCode FourCharCodeFromNSString(NSString *string) { + return (*((unsigned long*)[string UTF8String])); +} \ No newline at end of file