X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/8dad8db6544423018cfe3496b906af39bb3b3fbf..7a5fe3d07552d5513b15989f2c424bc5ae2a68e1:/ITCarbonSupport.m?ds=inline diff --git a/ITCarbonSupport.m b/ITCarbonSupport.m old mode 100755 new mode 100644 index ed6a35c..23b6f69 --- a/ITCarbonSupport.m +++ b/ITCarbonSupport.m @@ -1,9 +1,10 @@ #import "ITCarbonSupport.h" +#import "ITCategory-NSString.h" -NSString *NSStringFromFourCharCode(FourCharCode code) { - return [NSString stringWithUTF8String:&code]; +NSString *NSStringFromFourCharCode(unsigned long code) { + return [NSString stringWithFourCharCode:code]; } -FourCharCode FourCharCodeFromNSString(NSString *string) { - return (*((unsigned long*)[string UTF8String])); +unsigned long FourCharCodeFromNSString(NSString *string) { + return [string fourCharCode]; } \ No newline at end of file