Updating ITFoundation to include updates spurred by Haven development.
[ITFoundation.git] / ITCarbonSupport.m
index 9e8d1ee..23b6f69 100644 (file)
@@ -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