Upgrading ITFoundation to Xcode 3.0 and the Mac OS X 10.5 SDK.
[ITFoundation.git] / ITCarbonSupport.m
old mode 100755 (executable)
new mode 100644 (file)
index ed6a35c..23b6f69
@@ -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