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