Commit Graph

52 Commits

Author SHA1 Message Date
Pietro Gagliardi 60de6d05c5 Implemented message box transience on Mac OS X. 2014-06-05 00:53:26 -04:00
Pietro Gagliardi 4045d50f94 Checked to see if the previous commit worked after removing the leftover Combobox selectIndex() code; it does. Removed the dummy code from the Windows and GTK+ backends as well. 2014-05-29 04:41:07 -04:00
Pietro Gagliardi 4baa9397e6 Merged back combobox_darwin.m, rewrote it to use boundListboxArray() instead of creating a whole new object, and implemented what appears to be a fix for NSPopUpButton selection. Will delete the unneeded select(-1) code later and test again... 2014-05-28 23:46:33 -04:00
Pietro Gagliardi 5f5f4f6c2a Set up the Mac OS X build to always target Mac OS X 10.6 regardless of the host system; this is what we want and by default building on 10.8 produces binaries which won't run on 10.6. This isn't working yet, though: one enum in NSApplication.h becomes empty on 10.6... 2014-05-19 23:53:10 -04:00
Pietro Gagliardi be56293e9c Found a method in NSArrayController via Stack Overflow which lets me suppress selection-changing behavior on NSTableView inserts; use that on Listbox in Mac OS X. This means sysData.selectIndices() and its Mac OS X implementation can (and has) gone away, clearing TODOs on Windows and Unix by extension. 2014-05-17 12:42:00 -04:00
Pietro Gagliardi d8a7d9b53e Fixed up a bunch of Mac OS X function names, mostly Listbox-related, to be more clear and more consistent. 2014-05-16 20:44:19 -04:00
Pietro Gagliardi acc4a54356 Resolved the TODO about one of the functions in sysdata_darwin.m not being properly type-checked: I forgot to include sysdata_darwin.h (it was commented out)! Not a problem anymore, of course... 2014-05-16 06:56:33 -04:00
Pietro Gagliardi ebcbaa129d Combined all the Objective-C headers into objc_darwin.h. 2014-05-16 06:49:29 -04:00
Pietro Gagliardi 14b3696d96 Cleaned up objc_darwin.h and changed all instances of int64_t in the wrapper structs to intptr_t. 2014-05-16 06:37:25 -04:00
Pietro Gagliardi 8084ef53e1 Removed bleh_darwin.m and the initBleh() function that it contained as its only remaining code. 2014-05-16 02:00:21 -04:00
Pietro Gagliardi 08e86ea9b3 Removed the dummy NSEvent code from bleh_darwin.m and rewrote it in Objective-C in delegateuitask_darwin.m. And now to nuke bleh_darwin.m and change all the int64_ts to intptr_ts and merge the .h files... 2014-05-15 23:04:30 -04:00
Pietro Gagliardi 3b4924a156 Removed some residual drawRect: stuff from bleh_darwin.m. So close... 2014-05-15 22:30:19 -04:00
Pietro Gagliardi 524867574b Removed the Area drawing code from bleh_darwin.m and rewrote it in Objective-C in area_darwin.m. 2014-05-15 22:15:54 -04:00
Pietro Gagliardi 31fc77a99d Removed the event point translation from bleh_darwin.m and rewrote it in Objective-C in area_darwin.m. 2014-05-15 21:45:42 -04:00
Pietro Gagliardi 82101036b8 Removed the control font code from bleh_darwin.m and rewrote it in Objective-C in sysdata_darwin.m. 2014-05-15 21:16:28 -04:00
Pietro Gagliardi 999b553e39 Removed the stray applicationShouldTerminate: stuff from bleh_darwin.m. (delegateuitask_darwin.m has it already.) 2014-05-15 20:55:55 -04:00
Pietro Gagliardi 7645f459e7 Removed bleh_darwin.m's tracking area logic and rewrote it in Objective-C in area_darwin.m. 2014-05-15 20:42:29 -04:00
Pietro Gagliardi 100a41e1c9 Removed most, if not all, of the objc_msgSend() wrappers. 2014-05-15 20:24:01 -04:00
Pietro Gagliardi 9d8976abab Migrated everything else to Objective-C native; fixed a few things I missed along the way. 2014-05-15 19:55:16 -04:00
Pietro Gagliardi 93914ecb8c Migrated the new Objective-C-based Mac OS X Listbox code in and got rid of things preventing the darwin/386 build otherwise. 10.6 doesn't show the NSObservedObjectKey link error, but shows a crapton more, so this is gonna be a fun bug report... I'll use contrived examples and provide the new build logs based on this commit in the meantime as well. 2014-05-15 17:27:47 -04:00
Pietro Gagliardi 05c71e0d25 Handled AreaHandler.Mouse()'s handled return properly on Mac OS X. Also fixed some typos in objc_darwin.h. 2014-05-12 12:28:33 -04:00
Pietro Gagliardi 496ad98216 Replaced the horribly memory-inefficient NSIndexSet operation to get the list of selected indices in the Mac OS X Listbox with a far simpler option that avoids deferring some of the work (apart from objc_msgSend() calls) to cgo and the use of reflect.SliceHeader at all! It just grabs the indices from the NSIndexSet one at a time using the previous index as an anchor. 2014-05-12 02:06:05 -04:00
Pietro Gagliardi cc01981999 Added tracking areas to Area on Mac OS X so mouse move events can work; they work now. 2014-05-10 21:03:04 -04:00
Pietro Gagliardi 3bb9f41305 Fixed Mac OS X so that window sizes do not include the titlebar and frame. 2014-04-13 20:16:05 -04:00
Pietro Gagliardi f7817f6987 Added (untested; VM issues) code to handle Mac OS X Quit Dock menu items and other related stuff that may happen in the future. Will drop the TODO after I can test it. 2014-04-06 23:33:27 -04:00
Pietro Gagliardi 98ae4cb3b8 Moved all selector and class initialization for bleh_darwin.m into its own function. 2014-04-05 13:30:56 -04:00
Pietro Gagliardi 338cbc0540 Removed NilClass from the shared Mac OS X files (objc_darwin.h and bleh_darwin.m) as the //export issue that required that no longer applies. 2014-04-05 12:39:27 -04:00
Pietro Gagliardi 8eee2a92b7 Changed the way drawRect: was being added to our Mac OS X Area such that we no longer need a separate function to add it to the class. 2014-04-04 22:21:53 -04:00
Pietro Gagliardi 5a5b486b6a Removed objc_msgSend_rect(). This also consolidates all initWithFrame: calls into a simple initWithDummyFrame(). 2014-04-04 19:51:59 -04:00
Pietro Gagliardi dd4a7b9cbe Removed objc_msgSend_rect_uint_uint_bool(). 2014-04-04 19:14:03 -04:00
Pietro Gagliardi 461b0cc023 Removed objc_msgSend_rect_bool(). 2014-04-04 19:08:25 -04:00
Pietro Gagliardi ba2c1d6d20 Removed objc_msgSend_uint(). 2014-04-04 18:56:37 -04:00
Pietro Gagliardi be668a965a Fixed Mac OS X Button appearance; turns out it was using the wrong font. Also updated the TODO file to mark this fix and remove other stale/already fixed details. 2014-04-04 14:52:38 -04:00
Pietro Gagliardi 6a7cb73dda Added key events to Mac OS X Areas. Now Area is feature-complete (but buggy) on all platforms :D Also more TODOs. 2014-03-30 19:53:44 -04:00
Pietro Gagliardi 41a7e3dab8 Implemented Area mouse events on Mac OS X. Also fixed a few other things left behind in the previous commits. Also more TODOs. 2014-03-30 17:52:27 -04:00
Pietro Gagliardi 6a40011f85 Implement Mac OS X AreaHandler.Paint(). 2014-03-30 14:25:01 -04:00
Pietro Gagliardi f2d6daa9ea Added the beginning of the Mac OS X Area implementation. Also fixed the long-broken Mac OS X build. 2014-03-29 23:57:49 -04:00
Pietro Gagliardi d29e1b8710 Have ui.Go() return on main() return on Mac OS X. 2014-03-05 20:09:15 -05:00
Pietro Gagliardi 7866d3e0df Xcode 4 comes with a version of clang that treats inline differently: it requires exactly one definition of the inline function in the linked unit. static inline is C99-compliant (according to LeoNerd in freenode/##c) and does not have this problem, so use that in objc_darwin.h instead.
Fixes issue 1.
2014-03-05 10:31:16 -05:00
Pietro Gagliardi 383933c45e Added Mac OS X ProgressBars. Mac OS X now feature-equal! 2014-03-03 15:32:54 -05:00
Pietro Gagliardi 0baf0f4a97 Fixed the compiler errors. The Mac OS X Listboxes are created!... but don't show any items. Let's figure out why. 2014-03-02 23:28:43 -05:00
Pietro Gagliardi bdce1b9dc2 Added untested Mac OS X Listbox code. Won't compile yet... 2014-03-02 23:11:29 -05:00
Pietro Gagliardi 4bc35e2db5 Finished the implementation of Combobox on Mac OS X. 2014-03-02 18:38:45 -05:00
Pietro Gagliardi 234b724403 Added the other Combobox modification functions to the Mac OS X backend. Before continuing, I'll get messageboxes working... 2014-03-02 17:44:13 -05:00
Pietro Gagliardi 0709351fed 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. 2014-03-01 20:31:17 -05:00
Pietro Gagliardi 56eb64429d Fixed most errors. Now I just need to add a sysData pool. 2014-03-01 17:01:28 -05:00
Pietro Gagliardi 00243442d2 Fixed Mac OS X sysData.setWindowSize() to get the window origin. Now to fix the rest of the errors... 2014-03-01 13:58:38 -05:00
Pietro Gagliardi a83dcb0282 Added initial Mac OS X sysData code. Almost ready for first test build, hopefully? 2014-03-01 13:29:24 -05:00
Pietro Gagliardi 7bb6714cc0 Fixed typo in objc_darwin.h. 2014-03-01 04:43:22 -05:00
Pietro Gagliardi 5abea5cc61 Added objc_msgSend_ptr(), needed by uitask_darwin.go. 2014-03-01 04:23:49 -05:00