@interface CocoaDelegate : NSObject { } -(NSApplicationTerminateReply) applicationShouldTerminate:(NSApplication*)sender; -(BOOL) applicationShouldHandleReopen:(NSApplication*)application hasVisibleWindows:(BOOL)flag; -(void) run:(NSTimer*)timer; -(void) updateInDock:(NSTimer*)timer; @end namespace phoenix { struct pApplication { static void run(); static bool pendingEvents(); static void processEvents(); static void quit(); static void initialize(); }; }