git.ithinksw.org
/
ITFoundation.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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
}