Adding some useful functions to ITFoundation, for dealing with Carbon
[ITFoundation.git] / ITCarbonSupport.m
1 #import "ITCarbonSupport.h"
2
3 NSString *NSStringFromFourCharCode(FourCharCode code) {
4     return [NSString stringWithUTF8String:&code];
5 }
6
7 FourCharCode FourCharCodeFromNSString(NSString *string) {
8     return (*((unsigned long*)[string UTF8String]));
9 }