In Project Builder, to start a new program, the following lines needed to be added to the main.c file
#include "(program name).h"
After OSStatus err; EventTypeSpec eventSpec = { kEventClassWindow, kEventWindowDrawContent };
and after DisposeNibReference(nibRef);) InstallWindowEventHandler( window, NewEventHandlerUPP((Program Name)), 1, &eventSpec, (void *) window, NULL );
From here I would write a new file called (Program Name).h which would have this line OSStatus (Program Name)( EventHandlerCallRef, EventRef, void* );
And from there I would write my code starting with a file named (Program Name).c
How is XCode different? Thanks Carl |