Mercurial > hg > asa
view app_wrapper/main.mm @ 1:2ca5d7440b5c tip
added README
author | Fiore Martin <f.martin@qmul.ac.uk> |
---|---|
date | Fri, 26 Feb 2016 16:11:20 +0000 |
parents | 3004dd663202 |
children |
line wrap: on
line source
#import <Cocoa/Cocoa.h> #include "swell.h" int main(int argc, char *argv[]) { return NSApplicationMain(argc, (const char **) argv); } void CenterWindow(HWND hwnd) { if (!hwnd) return; id turd=(id)hwnd; if ([turd isKindOfClass:[NSView class]]) { NSWindow *w = [turd window]; [w center]; } if ([turd isKindOfClass:[NSWindow class]]) { [turd center]; } }