summaryrefslogtreecommitdiff
path: root/listbox_darwin.go
AgeCommit message (Collapse)Author
2014-08-30Out with the old...Pietro Gagliardi
2014-07-02Moved it all back; the preemptive multitaksing during an event handler kills ↵Pietro Gagliardi
us on all platforms. Going to have to restrict ALL GUI accss to happening from one t hread, so going to need to drop uitask entirely and have just a start() callback for startup code and a post() function for posting requests to windows (like channel sends but into a perpetual buffer).
2014-07-02Moved everything out of the way pending rewrite.Pietro Gagliardi
2014-06-10More go fmt.Pietro Gagliardi
2014-05-19Same as previous commit, but for Mac OS X now. The #cgo directives are in ↵Pietro Gagliardi
uitask_darwin.go.
2014-05-17Found a method in NSArrayController via Stack Overflow which lets me ↵Pietro Gagliardi
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-16Started working on a blog post of NSTableView creation in code, so removed ↵Pietro Gagliardi
the respective personal TODO in listbox_darwin.go.
2014-05-16Fixed up a bunch of Mac OS X function names, mostly Listbox-related, to be ↵Pietro Gagliardi
more clear and more consistent.
2014-05-16Combined all the Objective-C headers into objc_darwin.h.Pietro Gagliardi
2014-05-15Removed all the objc_getClass() and sel_getUid() calls from the Go code on ↵Pietro Gagliardi
Mac OS X. Also got rid of a forgotten objc_msgSend(). Now comes the Objective-C half...
2014-05-15Migrated everything else to Objective-C native; fixed a few things I missed ↵Pietro Gagliardi
along the way.
2014-05-15Migrated the new Objective-C-based Mac OS X Listbox code in and got rid of ↵Pietro Gagliardi
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-12Replaced the horribly memory-inefficient NSIndexSet operation to get the ↵Pietro Gagliardi
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-10Preparation for adding tracking areas to Mac OS X Areas: we need to now pass ↵Pietro Gagliardi
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-04-28Changed a TODO in listbox_darwin.go that, when my Mac OS X setup chooses to ↵Pietro Gagliardi
cooperate, will let me make the inefficient code in question efficient.
2014-04-13Consolidated NSScrollView code on Mac OS X to be all in one place.Pietro Gagliardi
2014-04-12Fixed Listboxes on Mac OS X having an initial selection.Pietro Gagliardi
2014-04-05Noted that NSScrollView sets the Listbox border in listbox_darwin.go.Pietro Gagliardi
2014-04-05Gave Listboxes a border on Mac OS X. That just leaves GTK+: oyxgen-gtk ↵Pietro Gagliardi
always gives GtkScrollingWindows a border, which misled me earlier... other themes don't.
2014-04-05Gave controls their proper fonts on Mac OS X.Pietro Gagliardi
2014-04-04Removed objc_alloc(). This should be all of them. Now to redo how classes ↵Pietro Gagliardi
are handled...
2014-04-04Removed objc_msgSend_rect(). This also consolidates all initWithFrame: calls ↵Pietro Gagliardi
into a simple initWithDummyFrame().
2014-04-04Removed objc_msgSend_uint().Pietro Gagliardi
2014-04-04Removed objc_new(). The idea is to remove all the objc_* functions that ↵Pietro Gagliardi
aren't prefixed with C. (except objc_getClass()).
2014-03-12Separated file creation dates from the package comment.Pietro Gagliardi
2014-03-09Made Listboxes non-editable in Mac OS X; also more TODOs.Pietro Gagliardi
2014-03-08Added the Mac OS X implementation of Combobox/Listbox.Len().Pietro Gagliardi
2014-03-03Split out the code to add a Control to a Mac OS X Window into its own function.Pietro Gagliardi
2014-03-03Added the scrollbars themselves to the NSScrollView backing the Mac OS X ↵Pietro Gagliardi
Listboxes. Also added a few TODOs. I think the Mac OS X Listbox implementation is now finished.
2014-03-03Wrapped Mac OS X Listboxes in NSScrollViews. Their preferredSize seems to be ↵Pietro Gagliardi
more reasonable now. Now to just add scrollbars...
2014-03-03Fixed selection grabbing and also append/insert/removal crashes: all were ↵Pietro Gagliardi
selector name typos. Also some TODOs Now to make this scroll/confine it to a scroll view...
2014-03-03Ah there we go; columnWithIdentifier: returns an index; we wanted ↵Pietro Gagliardi
tableColumnWithIdentifier:. Now to fix the crashing when getting list information...
2014-03-02Fixed a typo'd selector name related to Listbox selection. Adding items ↵Pietro Gagliardi
still doesn't work...
2014-03-02Fixed the compiler errors. The Mac OS X Listboxes are created!... but don't ↵Pietro Gagliardi
show any items. Let's figure out why.
2014-03-02Added untested Mac OS X Listbox code. Won't compile yet...Pietro Gagliardi