summaryrefslogtreecommitdiff
path: root/sysdata_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-30Restored the previous new API. I'm going to change it so that events are ↵Pietro Gagliardi
callbacks rather than using a window handler, but other than that... yeah.
2014-06-30Rolled back all those changes; I'm stupid.Pietro Gagliardi
2014-06-30Converted the Mac OS X backend to use uitask() instead of uitask chan func().Pietro Gagliardi
2014-06-30Reverted everything back to the old API.Pietro Gagliardi
2014-06-29FIxed compilation errors in the Mac OS X build. It works, but I still need ↵Pietro Gagliardi
to fix dialogs before I can push anything.
2014-06-29Migrated sysdata_darwin.go and uitask_darwin.go to the new API. Now to just ↵Pietro Gagliardi
wait for the answer to my Stack Overflow question so I can migrate dialog_darwin.go...
2014-06-26Implemented Checkbox.SetChecked() on Mac OS X and updated the README.Pietro Gagliardi
2014-06-11Implemented Window.Center() on Mac OS X.Pietro Gagliardi
2014-06-10More go fmt.Pietro Gagliardi
2014-06-09Added Area.RepaintAll() (requested by aybabtme on the Gopher Academy Slack) ↵Pietro Gagliardi
and implemented it on Mac OS X.
2014-05-29Checked to see if the previous commit worked after removing the leftover ↵Pietro Gagliardi
Combobox selectIndex() code; it does. Removed the dummy code from the Windows and GTK+ backends as well.
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-16Fixed up a bunch of Mac OS X function names, mostly Listbox-related, to be ↵Pietro Gagliardi
more clear and more consistent.
2014-05-16Moved toBOOL() from sysdata_darwin.go to objc_darwin.go since it's used by ↵Pietro Gagliardi
other Mac OS X files too.
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-13Finished migrating sysdata_darwin.go away from calling objc_msgSend() ↵Pietro Gagliardi
directly. initWithDummyFrame() is still there as other files use it.
2014-05-12Further refactoring and de-runtime-izing of sysdata_darwin.go. These changes ↵Pietro Gagliardi
currently untested.
2014-05-12Converted most of sysdata_darwin.go to regular Objective-C. I'll also ↵Pietro Gagliardi
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-12Began the migration to native Objective-C by moving the NSWindow functions ↵Pietro Gagliardi
and some of the shared helper routines.
2014-05-11Replaced the hackish indeterminate progress bar animation on Mac OS X (which ↵Pietro Gagliardi
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-10Added tracking areas to Area on Mac OS X so mouse move events can work; they ↵Pietro Gagliardi
work now.
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-05-01Added comment explaining the use of -[NSWindow setContentSize:] in Mac OS X ↵Pietro Gagliardi
sysData.setWindowSize().
2014-04-13Fixed Mac OS X so that window sizes do not include the titlebar and frame.Pietro Gagliardi
2014-04-13Fixed Area test time label weirdness by making Labels truncate their text ↵Pietro Gagliardi
instead of word-wrapping on all platforms. This doesn't explain GTK+/Wayland, alas.
2014-04-12Fixed Listboxes on Mac OS X having an initial selection.Pietro Gagliardi
2014-04-12Fixed Comboboxes on Mac OS X having an initial selection. This also lays the ↵Pietro Gagliardi
groundwork for adding Combobox/Listbox.Select() as a public function...
2014-04-05Removed TODO from Mac OS X code about additional label styles; judging from ↵Pietro Gagliardi
Interface Builder I've got them covered.
2014-04-05Gave controls their proper fonts on Mac OS X.Pietro Gagliardi
2014-04-05Updated sysdata_darwin.go to remove some TODOs and change most, if not all, ↵Pietro Gagliardi
embedded magic numbers to named constants.
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_rect_uint_uint_bool().Pietro Gagliardi
2014-04-04Removed objc_msgSend_rect_bool().Pietro Gagliardi
2014-04-04Removed objc_msgSend_uint().Pietro Gagliardi
2014-04-04Added a TODO related to the previous commit.Pietro Gagliardi
2014-04-04Mac OS X indeterminate progresbars were not animating under certain ↵Pietro Gagliardi
conditions; fix that.
2014-04-04Got rid of objc_addDelegate(); it was only called in one place (Mac OS X ↵Pietro Gagliardi
Window creation). Also forgot to mention that the previous commit also disables mouse movements in Cocoa Areas for now; I need to replace the current code with one that uses tracking because mouse movements are system-global.
2014-04-04Fixed Mac OS X Button appearance; turns out it was using the wrong font. ↵Pietro Gagliardi
Also updated the TODO file to mark this fix and remove other stale/already fixed details.
2014-04-03Enabled mouse move events on Mac OS X. Mosue events now just got stranger ↵Pietro Gagliardi
and buggier there...
2014-04-01Separated initial text from sysData.make() on the Mac OS X backend, ↵Pietro Gagliardi
completing that set of commits.
2014-03-30Fixed Mac OS X Area setAreaSize() not working: I was using the NSWindow ↵Pietro Gagliardi
setFrame:display: selector instead of sending the two NSView setFrame: and display methods separately.
2014-03-30Attempted to add the Area bare bones and resizing code to the Mac OS X ↵Pietro Gagliardi
backend. It complains that initWithFrame: is not implemented...
2014-03-12Separated file creation dates from the package comment.Pietro Gagliardi