summaryrefslogtreecommitdiff
path: root/delegate_darwin.go
AgeCommit message (Collapse)Author
2014-08-30Out with the old...Pietro Gagliardi
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-06-30Made Window.Closing a callback closure.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-30Reverted everything back to the old API.Pietro Gagliardi
2014-06-29Migrated the Mac OS X delegate code to the new API.Pietro Gagliardi
2014-06-26Finished implementing the new control sizing system on Mac OS X. The new ↵Pietro Gagliardi
label behavior needs to be reimplemented next.
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-17Decided to unconditionally redraw everything on a window resize on Mac OS X. ↵Pietro Gagliardi
Now to add TODOs for the other platforms to see if we should do the same.
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-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-07Split out the common resizing code into its own function so that it's all in ↵Pietro Gagliardi
one place. This will also affect what happens if I switch to DeferWindowPos() on Windows.
2014-04-07Fixed AppQuit on Mac OS X (forgot to set the NSApp delegate AND was using ↵Pietro Gagliardi
the wrong selector).
2014-04-06Added (untested; VM issues) code to handle Mac OS X Quit Dock menu items and ↵Pietro Gagliardi
other related stuff that may happen in the future. Will drop the TODO after I can test it.
2014-04-04Changed the way drawRect: was being added to our Mac OS X Area such that we ↵Pietro Gagliardi
no longer need a separate function to add it to the class.
2014-04-04Changed the Area class on Mac OS X to use the new class creation code. This ↵Pietro Gagliardi
gets rid of ALL the class creation code from delegate_darwin.go.
2014-04-04Created a new, simpler, easier to work with, and consistent way to create ↵Pietro Gagliardi
the necessary Objective-C classes in our Go code, and converted the appDelegate class to use it. Now for goArea...
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-30When we created our delegate and view classes on Mac OS X, it turned out we ↵Pietro Gagliardi
were accidentally subclassing the metaclass (of NSObject and NSView, respectively), not the actual superclass itself. Fixed tha. This also fixed that mysterious objc_new()/[object init] not working on the delegate class problem.
2014-03-29Added the beginning of the Mac OS X Area implementation. Also fixed the ↵Pietro Gagliardi
long-broken Mac OS X build.
2014-03-17Changed the new resizing code so that it uses the same allocated slice per ↵Pietro Gagliardi
window instead of making a new one to store all the resize requests each time.
2014-03-17Changed window resizes so that the actual Control.setRect() functions ↵Pietro Gagliardi
appended to an array of requests that the resize() function set all at once instead of having each done individually. This will be necessary for what I think will be a solution to the deadlocks. It doesn't work right now; I'm assuming it's allocating too much memory. I know how to fix this, but I'm committing what I have so far to be safe.
2014-03-12Separated file creation dates from the package comment.Pietro Gagliardi
2014-03-11More TODO reduction.Pietro Gagliardi
2014-03-03Fixed Mac OS X control placement flipping. This is done by passing the ↵Pietro Gagliardi
height of the window around setRect() calls to avoid polling the content view frame each time.
2014-03-02Fixed incorrect object placement by using the window's content rect, not the ↵Pietro Gagliardi
window's frame, to define the window size. The coordinate system being flipped is still not fixed.
2014-03-02Fixed incorrect redrawing of Mac OS X windows after resize. Still need to ↵Pietro Gagliardi
fix the wrong rect issues...
2014-03-01Added Mac OS X Buttons. Code hangs due to a preferredSize() issue...Pietro Gagliardi
2014-03-01Added windowDidResize: to the Mac OS X delegate for resizing windows. Now to ↵Pietro Gagliardi
figure out why I can't resize windows myself...
2014-03-01Cleaned up loose ends with the previous commit and got window close events ↵Pietro Gagliardi
working on Mac OS X. Woo!
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