Pietro Gagliardi
|
3e9e767d79
|
Fixed the Mac OS X 10.6 building using a rather hackish approach... Now it won't build on 10.6 itself without problems, so...
|
2014-05-20 07:46:57 -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
|
946e007e5d
|
Same as previous commit, but for Mac OS X now. The #cgo directives are in uitask_darwin.go.
|
2014-05-19 22:52:59 -04:00 |
Pietro Gagliardi
|
a48dd80add
|
Removed the extra #cgo directives from the Unix files. cgo collects directives from ALL files, rather than using each file's directive individually, so having them combined like this is pointless. Instead, the #cgo directives are (or is, since there's only one) in uitask_unix.go. Will do the same for Mac next; this will help since we're going to add a CFLAGS value afterward.
|
2014-05-19 22:32:38 -04:00 |
Pietro Gagliardi
|
4e820e86fc
|
Moved gtk_main() such that uitask_unix.go calls it directly via cgo. This is in preparation for the next two commits, which will remove the #cgo directives from all files except the uitask_*.go files, since they're being concatenated across files.
|
2014-05-19 22:18:53 -04:00 |
Pietro Gagliardi
|
7b7005ec19
|
TODO file update.
|
2014-05-19 00:11:50 -04:00 |
Pietro Gagliardi
|
cadbc174e3
|
Removed TODO about buttons 1+3 causing a button 2 click on Mac OS X Areas... it was actually on my host's end: X11/KDE is doing it, and I never noticed that before, nor do I remember that happening on the Windows/wine or GTK+ versions :S That's it for the TODOs in the Mac OS X Go files! :D
|
2014-05-18 12:53:15 -04:00 |
Pietro Gagliardi
|
216b5c183c
|
Made drawing of NSScrollView backgrounds explicit on Mac OS X. This is what Interface Builder sets for NSTableViews, so we do that too for Listbox. This also means NSScrollView draws the background for our Areas, settling the clear clip rect TODO.
|
2014-05-17 20:21:48 -04:00 |
Pietro Gagliardi
|
b9c12da838
|
More TODOs (see previous commit).
|
2014-05-17 17:10:23 -04:00 |
Pietro Gagliardi
|
24cac41de6
|
Decided to unconditionally redraw everything on a window resize on Mac OS X. Now to add TODOs for the other platforms to see if we should do the same.
|
2014-05-17 17:07:53 -04:00 |
Pietro Gagliardi
|
ce14390eff
|
Fixed variable names in Area drawing code on Unix to reflect that image.Rectangle is point-to-point, not origin/size like on Mac OS X. Windows was already fine; it just uses "left, top, right, and bottom" instead of "x0, y0, x1, and y1".
|
2014-05-17 17:01:52 -04:00 |
Pietro Gagliardi
|
352c60bf68
|
More clarification on the previous commit.
|
2014-05-17 16:21:25 -04:00 |
Pietro Gagliardi
|
eca42bc152
|
Removed TODO about not using bad-for-tracking features of NSEvent in Areas on Mac OS X since that's not relevant to our use of tracking areas.
|
2014-05-17 16:19:42 -04:00 |
Pietro Gagliardi
|
aa530add43
|
Added experimental code that tried, and failed, to combat combobox autoselection on Mac OS X.
|
2014-05-17 15:06:44 -04:00 |
Pietro Gagliardi
|
6a06292081
|
Added the Stack Overflow link for Mac OS X Listbox insertion autoselection and fixed deletion autoselection as well.
|
2014-05-17 13:27:54 -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
|
cc74fda950
|
Started working on a blog post of NSTableView creation in code, so removed the respective personal TODO in listbox_darwin.go.
|
2014-05-16 23:12:40 -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
|
6d67bce9b1
|
Moved toBOOL() from sysdata_darwin.go to objc_darwin.go since it's used by other Mac OS X files too.
|
2014-05-16 20:29:16 -04:00 |
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 |