diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-01 20:31:17 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-01 20:31:17 -0500 |
| commit | 0709351fed0b5fb5871853505e969bf0ccf17495 (patch) | |
| tree | 46190bc1228441fe77afaf1ccac6003aed87bcd4 /bleh_darwin.m | |
| parent | 10e9f6b927c5208fce290fea346a8a2ad7ac3fa3 (diff) | |
Attempted to fix the lack of resizable window borders by setting the NSApplication activation policy. This fixed it, and also fixed a bunch of other things, such as the application being seen as part of Terminal, lack of dock icon, lack of application menu, etc.
Diffstat (limited to 'bleh_darwin.m')
| -rw-r--r-- | bleh_darwin.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bleh_darwin.m b/bleh_darwin.m index 04f8930..1c42cca 100644 --- a/bleh_darwin.m +++ b/bleh_darwin.m @@ -28,6 +28,15 @@ id _objc_msgSend_uint(id obj, SEL sel, uintptr_t a) } /* +same as above, but for NSInteger +*/ + +id objc_msgSend_int(id obj, SEL sel, intptr_t a) +{ + return objc_msgSend(obj, sel, (NSInteger) a); +} + +/* These are the objc_msgSend() wrappers around NSRect. The problem is that while on 32-bit systems, NSRect is a concrete structure, on 64-bit systems it's just a typedef to CGRect. While in practice just using CGRect everywhere seems to work, better to be safe than sorry. I use int64_t for maximum safety, as my coordinates are stored as Go ints and Go int -> C int (which is what is documented as happening) isn't reliable. |
