Commit Graph

849 Commits

Author SHA1 Message Date
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
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 5819e52f8d Preparation for adding tracking areas to Mac OS X Areas: we need to now pass in the sysData to each control's make() function so Area can save the tracking area somewhere (this will also come in handy when I change alternate from a bool to an integer index). 2014-05-10 14:59:11 -04:00
Pietro Gagliardi d8d671b0b0 Documented the xxxMouseDragged: behavior in the Mac OS X source code. 2014-05-10 14:31:22 -04:00
Pietro Gagliardi fefab429fc Documented dragging issues caused by how Mac OS X handles mouse events; also determined that multiple buttons held at once only generates one mouseDragged: signal. 2014-05-10 14:27:29 -04:00
Pietro Gagliardi 605ea3123b Still more TODOs. 2014-05-10 02:34:08 -04:00
Pietro Gagliardi 40c555c269 More TODOs. 2014-05-10 02:17:23 -04:00
Pietro Gagliardi 1bddba06d8 More TODOs, now that I have Mac OS X 10.6 working as well. 2014-05-08 22:23:13 -04:00
Pietro Gagliardi 8de46af38b Switched TableView proposal from <tt>...</tt> to <tt><ins>...</ins></tt> to make those parts distinct from code blocks. 2014-05-08 16:38:46 -04:00
Pietro Gagliardi 98ff761143 Fixed <tt> breakup in tableviewproposal.md. 2014-05-08 16:37:15 -04:00
Pietro Gagliardi 0f5f1b583a github strips style="..." from Markdown, so switch to <tt>...</tt> for the TableView proposal. 2014-05-08 16:35:14 -04:00
Pietro Gagliardi 1443b03476 Added a TableView proposal. 2014-05-08 12:45:14 -04:00
Pietro Gagliardi 22315bca59 Fixed dragging at all in Mac OS X Areas; now we just have to work out all the other kinks... 2014-05-07 19:40:46 -04:00
Pietro Gagliardi 3508239bf7 Completed extending of mouse buttons to the system's limit; defined (as undefined) the mouse drag behavior for buttons >= 3; implemented all that on the GTK+ side, and decided to have MouseEvents.Held[] be sorted (documentation only for now; need to check the code to make sure it follows). Good Lord... 2014-05-07 17:51:04 -04:00
Pietro Gagliardi 0eaffe120b More TODOs... sigh... 2014-05-07 16:47:27 -04:00
Pietro Gagliardi 8ababaa95c More TODOs. 2014-05-06 20:46:41 -04:00
Pietro Gagliardi 898c3c7b66 Removed TODO from area_darwin.go about extra mouse button handling; turns out it works as expected right out of the gate... for the most part. 2014-05-06 20:36:31 -04:00
Pietro Gagliardi d6f559d026 More future plans. 2014-05-03 11:27:48 -04:00
Pietro Gagliardi 82c2ae6c6b More TODOs. 2014-05-02 12:58:08 -04:00
Pietro Gagliardi 457e631a02 More future plans. 2014-05-02 11:05:01 -04:00
Pietro Gagliardi 68cae180e5 More future plans. 2014-05-02 10:12:20 -04:00
Pietro Gagliardi 61b3b03418 Added comment explaining the use of -[NSWindow setContentSize:] in Mac OS X sysData.setWindowSize(). 2014-05-01 13:13:10 -04:00
Pietro Gagliardi 3af89507ca More future plans. 2014-04-30 15:07:07 -04:00
Pietro Gagliardi 92d3f38811 Added a note to uitask_windows.go that scrolling is a modal loop; that solves that mystery from ages ago. 2014-04-30 14:35:33 -04:00
Pietro Gagliardi 6716ce3998 Added a quick disclaimer about Area mouse button numbers and documentation. 2014-04-29 16:27:16 -04:00
Pietro Gagliardi 2528fa9cfd Added extra mouse buttons to Areas on Windows. 2014-04-29 16:26:29 -04:00
Pietro Gagliardi a98072a23b Decided not to cap mouse buttons at 3; reflected this in the public interface and in the TODO file. Platform implementations come next. 2014-04-29 16:03:37 -04:00
Pietro Gagliardi f19db96c4e Resolved another TODO in area_windows.go. 2014-04-29 15:11:25 -04:00
Pietro Gagliardi 5f9221f07a Got rid of stray TODO in area_windows.go about populating MouseEvent.Held; it was already being populated! 2014-04-29 14:35:16 -04:00
Pietro Gagliardi 170225c626 Removed another TODO about scrolling Areas on Windows (this time about aborting early if there seems to be no change). 2014-04-29 12:28:23 -04:00
Pietro Gagliardi 90e4fa6f8f Removed going over The Old New Thing's scrollbar series as we have now done so (and things I didn't look at are elsewhere in future plans). 2014-04-29 12:22:21 -04:00
Pietro Gagliardi 86c95f40aa Fixed other problems with Windows Area scrollbars (after going through Raymond Chen's scrollbar series), added some more future plans, and fixed one of the scrollbar series links (which was accidentally miscopied). 2014-04-29 12:18:09 -04:00
Pietro Gagliardi 3e047ba174 Fixed Area scrollbars on Windows sometimes stopping a pixel shy of the actual end of the scrollbar. 2014-04-29 11:56:59 -04:00
Pietro Gagliardi 8813788c14 Reformatted the list of Raymond Chen's scrollbar series pages into a proper Markdown list... guess I'll run through that now. 2014-04-29 11:16:52 -04:00
Pietro Gagliardi a7e9cf05f6 More future plans. 2014-04-29 10:31:24 -04:00
Pietro Gagliardi 11a4214c55 Decided not to deactivate the Windows Common Control 6 manifest activation context since it's active for the life of the program already. 2014-04-29 10:30:03 -04:00