I want to write some straight C code that uses some Foundation types. For now, I want to use NSInteger, NSUInteger, and NSRange; I can imagine wanting others later. Is there a header somewhere I can import that will get me these types without causing trouble in a straight C file?
Share
Not Foundation, but you can use Core Foundation (
<CoreFoundation/CoreFoundation.h>or more specificallyCFBase.h), and the equivalent typesCFIndex,CFRange, etc.