From 013d3a3ff1cee62d01240f869bc95152bd812a93 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Fri, 6 Jan 2023 21:14:17 +0800 Subject: [PATCH] Update macOS implementation Add styleMasks for window parameters. --- .gitignore | 2 +- .../UserInterfaceState.xcuserstate | Bin 17115 -> 19854 bytes src/main.m | 14 ++++++++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b6aaf4c..72823be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .idea/ cmake-build-debug/ -.DS_Store +.DS_Store \ No newline at end of file diff --git a/cerberus.xcodeproj/project.xcworkspace/xcuserdata/theoryofnekomata.xcuserdatad/UserInterfaceState.xcuserstate b/cerberus.xcodeproj/project.xcworkspace/xcuserdata/theoryofnekomata.xcuserdatad/UserInterfaceState.xcuserstate index 7bf5c2d67ca36a9a17cf64f83b1c36273365ffe7..25a5f3ffad53fac591e5c47d50d4c74bfc9800c6 100644 GIT binary patch delta 10894 zcmaiZ30zah7w(*yxqxg*AP|xelAsn6NJ2t@1W*BSM_f?cs)!I3Wh;woHFK-B)@rLw z-Ma`_>)u-X*Y2&gyS1*hZq;h*Ub|=)TdTfFLabfhd-?rxm$`S&ocYdo&YUy%#5{O> zH7qWNwk6{%?$KxrDnnyYIU0v*Q5~vB51b88_*WC6}^gHL$9MZ&>r*|+KWC%`_O)L03AeMpkwGb`U;&w-=cHqBD#crLf6oB zh=53tfD~j91<@df7>IR)0^%S6;vo?_LMP}925>?)gK1N~t%RKX;u zhbb@>W`Y|S%!PUI2rPof;YnBq%V9M<2hYQL*Z>>hJ=hKJ!w2vod;}lEC-5okfzMz+ zd)S^Gl@v%k%!4LvYf0S zE6FOdnmkR`lIO`fvVm+QTgfZrf8;IlHgUg0-X*)phvXx&hwLMV$XDbHIZMuy3*-(( z6ey;IQYz3O8caiI2O2@;G={2aJncj~)BC7_TB(iprTu6T?N5v806LHkqJwD(9YTlG zGU}q^X)UdzQ|UC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$dHu7xgH*GAV)*Fo1um!=!68=@Pk8>P$9<>^N2 z#^@&MX6hE}-qvl>ZPRVn?bPko9n>Ax9npQPJFfdocSUzqcTIOgcT4v`_p9zV-DBNf zx_|V1y+AM2i}g~yPH)f~^=7?Q@7A}_x6*s{t@SDTzWQPMY<;fY@6+e&i}WS>Qhm98 zqJEZszJ8igu2~87{6ABY%B&y|JUQ*tptw-1vv7 ziOFKJnH(mUsk14?)Xmhx)XS7+8fEgC@=XP%B2$T})KqSoW_sDQ#I(t@+qB2D*R;=c z!gSJf%5=tb(R9gl*>u(PgXw|kq3Mz7Pt!kUU`A%Y*xcM~G+WFzv(xM`w=yT2+nPI= zJDZ1?hnYv1GtHySxn`d^-&|lWG#8mm%yZ3~%xBHNSQM7FmQfbJWwm9m<%s2&<%H#w ztX9r>v8Kz>ly23)-SC0tUp+Pvfj7; zVtr)&-TK)2m-R^^NJNSH#P*3fiLWHCPdtHpBL&ZJuquZJ}+6ZJBL{&Hs_@xb1}PwC$YjOWW7B^R~OTN47t0f7_ngi9N#J z*er<|4re=OH)oo2w6nlj=qz@YIxC!$ozt8%oSbu^bFp)obA@xYv&y;F z`HpjgbCYwkbGP%X^Pcl>m&|2yxm~?nxvsIU64xTv3RkUbvum&Gi0hc^gzL2Htn0k% zlIyDLhU>QLj@u91YIiGlfxFmU;hyBC?$_P3-E-ZQ?gj3*-L>v_-J9H7+&kR6-F5B* z?nCbHJh7e>PhU?z&j?ShXSAolQ|Kx4O!Q3gyyThTdEGP5vm~iDX?@c6q{B%^la42y zOgfYFS<)9t*OP7~eVcSI>4&7BlI|z{;#GRvdPjRJy~_r9tGye&o4xzIAA3LXp7fsf zUhrP_UiIGa-uB+{-uFKAKJxya43c3oPL4{JCCihQ$*THO5)}R>XJ0rY0m #import "main.h" + int main() { // https://stackoverflow.com/questions/30269329/creating-window-application-in-pure-c-on-mac-osx @autoreleasepool { [NSApplication sharedApplication]; [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; id applicationName = [[NSProcessInfo processInfo] processName]; - id window = [[NSWindow alloc] initWithContentRect:NSMakeRect(WINDOW_X, WINDOW_Y, WINDOW_WIDTH, WINDOW_HEIGHT) - styleMask:NSWindowStyleMaskTitled backing:NSBackingStoreBuffered defer:NO]; + id window = [ + [NSWindow alloc] + initWithContentRect: NSMakeRect(WINDOW_X, WINDOW_Y, WINDOW_WIDTH, WINDOW_HEIGHT) + styleMask: + NSWindowStyleMaskTitled + | NSWindowStyleMaskClosable + | NSWindowStyleMaskMiniaturizable + | NSWindowStyleMaskResizable + backing:NSBackingStoreBuffered + defer:NO + ]; [window cascadeTopLeftFromPoint:NSMakePoint(20, 20)]; [window setTitle:applicationName]; [window makeKeyAndOrderFront:nil];