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
|
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
|
ebcbaa129d
|
Combined all the Objective-C headers into objc_darwin.h.
|
2014-05-16 06:49:29 -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
|
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
|
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
|
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
|
c993c6b8e8
|
Changed a TODO in listbox_darwin.go that, when my Mac OS X setup chooses to cooperate, will let me make the inefficient code in question efficient.
|
2014-04-28 23:17:53 -04:00 |
Pietro Gagliardi
|
417bdb8949
|
Consolidated NSScrollView code on Mac OS X to be all in one place.
|
2014-04-13 12:52:10 -04:00 |
Pietro Gagliardi
|
d4c79539af
|
Fixed Listboxes on Mac OS X having an initial selection.
|
2014-04-12 22:05:34 -04:00 |
Pietro Gagliardi
|
420c640aea
|
Noted that NSScrollView sets the Listbox border in listbox_darwin.go.
|
2014-04-05 22:53:26 -04:00 |
Pietro Gagliardi
|
30c3ee1b98
|
Gave Listboxes a border on Mac OS X. That just leaves GTK+: oyxgen-gtk always gives GtkScrollingWindows a border, which misled me earlier... other themes don't.
|
2014-04-05 22:51:01 -04:00 |
Pietro Gagliardi
|
da68adf420
|
Gave controls their proper fonts on Mac OS X.
|
2014-04-05 15:10:02 -04:00 |
Pietro Gagliardi
|
e35457b968
|
Removed objc_alloc(). This should be all of them. Now to redo how classes are handled...
|
2014-04-04 20:34:35 -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
|
ba2c1d6d20
|
Removed objc_msgSend_uint().
|
2014-04-04 18:56:37 -04:00 |
Pietro Gagliardi
|
3a130b756a
|
Removed objc_new(). The idea is to remove all the objc_* functions that aren't prefixed with C. (except objc_getClass()).
|
2014-04-04 17:50:27 -04:00 |
Pietro Gagliardi
|
34ce16d586
|
Separated file creation dates from the package comment.
|
2014-03-12 21:55:45 -04:00 |
Pietro Gagliardi
|
1389fda528
|
Made Listboxes non-editable in Mac OS X; also more TODOs.
|
2014-03-09 11:33:05 -04:00 |
Pietro Gagliardi
|
47829df714
|
Added the Mac OS X implementation of Combobox/Listbox.Len().
|
2014-03-08 17:25:19 -05:00 |
Pietro Gagliardi
|
b2e49b3698
|
Split out the code to add a Control to a Mac OS X Window into its own function.
|
2014-03-03 15:52:39 -05:00 |
Pietro Gagliardi
|
874491a871
|
Added the scrollbars themselves to the NSScrollView backing the Mac OS X Listboxes. Also added a few TODOs. I think the Mac OS X Listbox implementation is now finished.
|
2014-03-03 14:57:20 -05:00 |
Pietro Gagliardi
|
8bacbf8cd6
|
Wrapped Mac OS X Listboxes in NSScrollViews. Their preferredSize seems to be more reasonable now. Now to just add scrollbars...
|
2014-03-03 14:50:03 -05:00 |
Pietro Gagliardi
|
842815b2e0
|
Fixed selection grabbing and also append/insert/removal crashes: all were selector name typos. Also some TODOs Now to make this scroll/confine it to a scroll view...
|
2014-03-03 01:51:54 -05:00 |
Pietro Gagliardi
|
ab2065e5ba
|
Ah there we go; columnWithIdentifier: returns an index; we wanted tableColumnWithIdentifier:. Now to fix the crashing when getting list information...
|
2014-03-03 01:43:18 -05:00 |
Pietro Gagliardi
|
403f9cab35
|
Fixed a typo'd selector name related to Listbox selection. Adding items still doesn't work...
|
2014-03-02 23:37:50 -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 |