Enabling garbage collection support.
[ITFoundation.git] / ITCarbonSupport.m
old mode 100755 (executable)
new mode 100644 (file)
index 75c5e53..23b6f69
@@ -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