Commit Graph

1034 Commits

Author SHA1 Message Date
Pietro Gagliardi 8ce1555ca2 Decided not to move the initCocoa() function to a file init_darwin.go because it's small enough now that it doesn't matter. 2014-05-16 20:24:30 -04:00
Pietro Gagliardi 332f9ffd5b Moved some old documents out of the top-level directory and into a folder olddocs/ to make things neater. 2014-05-16 19:57:25 -04:00
Pietro Gagliardi dc179b3a44 Implemented the Super and order changes on Mac OS X. Meta is irrelevant here. 2014-05-16 19:52:28 -04:00
Pietro Gagliardi 5176b0e9dd Added proper Super handling on Windows. Meta isn't used here and the modifiers were already in the correct order. 2014-05-16 18:56:03 -04:00
Pietro Gagliardi ea9b4bdfc2 Added (most of) the Super and Meta changes for GTK+. The Modifiers were already in the correct order. 2014-05-16 18:39:08 -04:00
Pietro Gagliardi 13397f91ee Changed the meaning of the Modifiers keys to be positional, added Super, and pinned down Meta vs. Alt. All but the Meta/Alt one were done after discussion in #go-nuts about how to handle differences in user expectation properly. This is the portable interface only; each platform implementation comes next. 2014-05-16 18:16:25 -04:00
Pietro Gagliardi da2bd70192 Removed Objective-C runtime TODOs from todo.md. 2014-05-16 09:16:44 -04:00
Pietro Gagliardi 3d5aafcf7d Updated the README for the Objective-C change. 2014-05-16 09:16:17 -04:00
Pietro Gagliardi a9717bfb4f Organized the dummyRect declarations/definitions/etc. in the Objective-C files. I think that's it for the Objective-C conversion of the Mac OS X code! 2014-05-16 09:13:11 -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 402e73c307 Whoops, forgot to add objc_darwin.m to git! 2014-05-16 06:38:18 -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 688121146c Removed the sole objc_msgSendSuper() wrapper from bleh_darwin.m. 2014-05-15 20:44:52 -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 b7db0e15cd Removed all the objc_getClass() and sel_getUid() calls from the Go code on Mac OS X. Also got rid of a forgotten objc_msgSend(). Now comes the Objective-C half... 2014-05-15 20:14:44 -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 b73d4e9010 Migrated prefsize_darwin.go to plain Objective-C. Not much left...! 2014-05-15 19:21:54 -04:00
Pietro Gagliardi 5b5c76021e Migrated dialog_darwin.go to use Objective-C directly. 2014-05-15 19:08:24 -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 c1f3d92263 More future plans. 2014-05-14 23:21:17 -04:00
Pietro Gagliardi 58b07a83ea Migrated listbox_darwin.go to using Objective-C directly instead of through the runtime. Due to linking issues on Mac OS X 10.6, I haven't made this live yet; I need to repair my 10.6 setup before I can actually test. This won't be done before midnight, so preemptive commit. The new listbox_darwin.go is lbnew. 2014-05-13 23:35:04 -04:00
Pietro Gagliardi b4cbccb402 More future plans. 2014-05-13 23:34:09 -04:00
Pietro Gagliardi 342e16008b More TODOs. 2014-05-13 12:02:35 -04:00
Pietro Gagliardi 62b3c26107 Removed the class creation at runtime stuff and its residue from the Go files. This also cleans up the initialization stuff on the Go side too. 2014-05-13 09:40:19 -04:00
Pietro Gagliardi 11ef974b48 Moved area_darwin.go to direct Objective-C use. 2014-05-13 09:33:37 -04:00
Pietro Gagliardi 3e712db2e0 Moved uitask_darwin.go to be Objective-C-based. Both delegate_darwin.go and uitask_darwin.go will share the same .m file. 2014-05-13 08:14:28 -04:00
Pietro Gagliardi de97125c54 Started conversion of delegate_darwin.go to use Objective-C directly. 2014-05-13 07:56:37 -04:00
Pietro Gagliardi 791345fa97 Finished migrating sysdata_darwin.go away from calling objc_msgSend() directly. initWithDummyFrame() is still there as other files use it. 2014-05-13 07:09:22 -04:00
Pietro Gagliardi 3949fb94e9 Further refactoring and de-runtime-izing of sysdata_darwin.go. These changes currently untested. 2014-05-12 23:55:56 -04:00
Pietro Gagliardi fd60061ded More future plans. 2014-05-12 19:41:38 -04:00
Pietro Gagliardi 4e946c813e More TODOs. 2014-05-12 19:36:02 -04:00
Pietro Gagliardi 37f3d0fafc Converted most of sysdata_darwin.go to regular Objective-C. I'll also standardize the interface for transferring integer values between Objective-C and Go so that they use intptr_t and uintptr_t everywhere, rather than those two in some places and uint64_t/int64_t in others. 2014-05-12 19:34:13 -04:00
Pietro Gagliardi f14614c0c7 Began the migration to native Objective-C by moving the NSWindow functions and some of the shared helper routines. 2014-05-12 15:15:26 -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 29d892d2ff Fixed Mac OS X Area mouse drags being reported outside the actual Area. 2014-05-12 11:34:24 -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 4813a9892e More future plans. 2014-05-11 23:31:14 -04:00
Pietro Gagliardi e726ee16bd Replaced the hackish indeterminate progress bar animation on Mac OS X (which didn't work on 10.6) with calls to startAnimation: and stopAnimation:; I have no idea how I missed those the first time. Thanks to stal[DirectX] in irc.freenode.net/#macdev for pointing those out to me. 2014-05-11 21:31:20 -04:00
Pietro Gagliardi 51bee78044 More TODOs and future plans. 2014-05-11 11:22:15 -04:00
Pietro Gagliardi 9ed8d9c816 Consistency change: all Windows API structure field names now match case-wise (some were forcibly exported in the past for historical reasons: I originally started package ui by trying to write a Windows API wrapper, but decided to ditch that and just use the Windows API directly from package ui). Also more TODOs. 2014-05-11 11:11:57 -04:00
Pietro Gagliardi d0ac56c0fc Added some more exposition to a comment in bleh_darwin.m regarding tracking area options. 2014-05-10 21:04:02 -04:00