Forgive the basic questions. I am finally trying my hand at some jitter external dev so bare with me:
Are there any examples of using Obj-C with Jitter (or Max) available for me to peruse and wrap my head around? I've not been able to find any officially with the SDK, but I may be overlooking something.
Is it within best practices to include an Obj-C/Cocoa Framework within the MXO bundle to keep everything self contained? Will Max/MSP & the mxo respect the @loader_path to load my Obj-C Framework?
Does Max have an NSRunloop (or CFRunloop) equivalent, or do I need to provide my own thread with one in my framework? Some of the Cocoa classes I use in the framework (which I wish to leverage in Jitter) require a main, NSApplication style run loop. So far I have been firing things off to the main run loop which seems to work ok in Cocoa apps where rendering (and thus my framework) happens in a thread sans a run loop (but I know apps like that have main NSRunLoop to fall back on). This is a 'planning for the future' sort of a question, and I have no idea about the nuances of Jitter external dev, or deep Max internals.
Now for a *really* basic question. I've set my project up using the xcconfig and changed the paths, and set my build target to be based on my xcconfig. I am getting an error when trying to build:
/../c74support/max-includes/ext_proto.h:600: error: expected declaration specifiers or '...' before numeric constant
int sprintf(char *, const char *, ...);
int sscanf(const char *, const char *, ...);
as well as
/../c74support/jit-includes/jit.gl.procs.h:965: error: expected ')' before 'x'
/../c74support/jit-includes/jit.gl.procs.h:966: error: expected ';' before 'void'
void (APIENTRY *Vertex2hNV) (GLhalfNV x, GLhalfNV y);
void (APIENTRY *Vertex2hvNV) (const GLhalfNV *v);
Im assuming this is a basic oversight for the compilation errors, but Im failing to find it. My project (right now basically a slightly tweaked jit.gl.simple seems to not have syntax or basic errors in the c files).Thanks for any help!