summaryrefslogtreecommitdiff
path: root/uitask_darwin.go
AgeCommit message (Collapse)Author
2015-12-11LET'S GET THIS FINAL REWRITE EVER STARTEDPietro Gagliardi
2014-08-30...in with the new.Pietro Gagliardi
2014-08-30Out with the old...Pietro Gagliardi
2014-07-03Implemented Post() on Mac OS X.Pietro Gagliardi
2014-07-03Added the start() function and fixed compilation errors. Everything seems to ↵Pietro Gagliardi
work...
2014-07-03Removed uitask and made the Window creation functions only callable from the ↵Pietro Gagliardi
main thread. This si the first part in the real major change, which bans all concurrent use of the API and provides a Post() function for communication. I don't like this, but it's the only way. Untested.
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-07-01Migrated the Mac OS X backend to the new uitask system.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-11Removed Mac OS X 10.6 support. Quite a hassle that version was...Pietro Gagliardi
2014-06-10Partial go fmt. Will do the rest over the next few commits. While I'm not ↵Pietro Gagliardi
too happy about it, everyone else uses go fmt, and pull requests will be more convenient if I just do it. (Also do it now, because when I change the Windows backend things are going to change...)
2014-05-19Set up the Mac OS X build to always target Mac OS X 10.6 regardless of the ↵Pietro Gagliardi
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-16Decided not to move the initCocoa() function to a file init_darwin.go ↵Pietro Gagliardi
because it's small enough now that it doesn't matter.
2014-05-16Combined all the Objective-C headers into objc_darwin.h.Pietro Gagliardi
2014-05-16Removed bleh_darwin.m and the initBleh() function that it contained as its ↵Pietro Gagliardi
only remaining code.
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-13Removed the class creation at runtime stuff and its residue from the Go ↵Pietro Gagliardi
files. This also cleans up the initialization stuff on the Go side too.
2014-05-13Moved uitask_darwin.go to be Objective-C-based. Both delegate_darwin.go and ↵Pietro Gagliardi
uitask_darwin.go will share the same .m file.
2014-05-13Started conversion of delegate_darwin.go to use Objective-C directly.Pietro Gagliardi
2014-04-07Fixed AppQuit on Mac OS X (forgot to set the NSApp delegate AND was using ↵Pietro Gagliardi
the wrong selector).
2014-04-05Moved all selector and class initialization for bleh_darwin.m into its own ↵Pietro Gagliardi
function.
2014-04-04Removed objc_release().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-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
2014-03-12Made programs go to the front of the screen on Mac OS X like other programs ↵Pietro Gagliardi
do (and like on other platforms).
2014-03-05Have ui.Go() return on main() return on Mac OS X.Pietro Gagliardi
2014-03-02Added the Mac OS X implementation of messageboxes.Pietro Gagliardi
2014-03-01Some error message and TODO changes related to the previous commit.Pietro Gagliardi
2014-03-01Attempted to fix the lack of resizable window borders by setting the ↵Pietro Gagliardi
NSApplication activation policy. This fixed it, and also fixed a bunch of other things, such as the application being seen as part of Terminal, lack of dock icon, lack of application menu, etc.
2014-03-01Fixed most errors. Now I just need to add a sysData pool.Pietro Gagliardi
2014-03-01Started to build a single global delegate object; now to fix issues.Pietro Gagliardi
2014-03-01Oops, accidentally removed the code that actually makes the ↵Pietro Gagliardi
appdelegateclass. Almost working...
2014-03-01Major code restructure to allow Cocoa to work correctly. Cocoa requires that ↵Pietro Gagliardi
the application loop run on the very first OS thread created, not just an any ordinary thread. To support this, your code must now be run by the UI init code. Windows and Unix builds still work fine; Mac OS X fails for reasons I now have to debug.
2014-03-01Fixed a minor startup failure on Mac OS X; now for a big one: apparently the ↵Pietro Gagliardi
thread that calls -[NSApplication run] is NOT the main thread...
2014-03-01Fixed the compiler errors on Mac OS X; now to get it running...Pietro Gagliardi
2014-03-01Added _setDelegate to the common Objective-C selectors list and added a ↵Pietro Gagliardi
clarity wrapper function objc_setDelegate().
2014-02-28Added the ui() for OS X.Pietro Gagliardi