X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/692faf9cb79903190c1885a7ed08a2c97cc7fb8b..7a5fe3d07552d5513b15989f2c424bc5ae2a68e1:/ITCarbonSupport.m?ds=sidebyside diff --git a/ITCarbonSupport.m b/ITCarbonSupport.m index 9e8d1ee..23b6f69 100644 --- 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:(const char *)&code]; + return [NSString stringWithFourCharCode:code]; } unsigned long FourCharCodeFromNSString(NSString *string) { - return (*((unsigned long*)[string UTF8String])); + return [string fourCharCode]; } \ No newline at end of file