f@0: #import f@0: #include "swell.h" f@0: f@0: int main(int argc, char *argv[]) f@0: { f@0: return NSApplicationMain(argc, (const char **) argv); f@0: } f@0: f@0: void CenterWindow(HWND hwnd) f@0: { f@0: if (!hwnd) return; f@0: f@0: id turd=(id)hwnd; f@0: f@0: if ([turd isKindOfClass:[NSView class]]) f@0: { f@0: NSWindow *w = [turd window]; f@0: [w center]; f@0: } f@0: if ([turd isKindOfClass:[NSWindow class]]) f@0: { f@0: [turd center]; f@0: } f@0: } f@0: