Even though I've been dabbling in Cocoa for one and a half year now, I haven't gotten entirely comfortable with some of the design aspects of the Objective C / Cocoa / Xcode combo.
What kind of files do I create to add new types and c functions for making them, like NSPoint and NSMakePoint(x, y).
Lets say I want a type
The definitions can't be in the .h file of an Objective C class, because you're not supposed to import the .h files of another Objective C class in the .h file of a class.
Do I use New File -> BSD -> C File? Or something else?
What kind of files do I create to add new types and c functions for making them, like NSPoint and NSMakePoint(x, y).
Lets say I want a type
Code:
typedef struct {
float a;
float x;
float y;
float z;
} ASRotation;
ASMakeRotation(float a, float x, float y, float z);
The definitions can't be in the .h file of an Objective C class, because you're not supposed to import the .h files of another Objective C class in the .h file of a class.
Do I use New File -> BSD -> C File? Or something else?