Commit Graph

16 Commits

Author SHA1 Message Date
Pietro Gagliardi dd20d56f25 Created a new, simpler, easier to work with, and consistent way to create the necessary Objective-C classes in our Go code, and converted the appDelegate class to use it. Now for goArea... 2014-04-04 21:06:01 -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 8f944c7ec6 When we created our delegate and view classes on Mac OS X, it turned out we 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-30 13:21:10 -04:00
Pietro Gagliardi f2d6daa9ea Added the beginning of the Mac OS X Area implementation. Also fixed the long-broken Mac OS X build. 2014-03-29 23:57:49 -04:00
Pietro Gagliardi 64d5eb541e Changed the new resizing code so that it uses the same allocated slice per window instead of making a new one to store all the resize requests each time. 2014-03-17 21:09:03 -04:00
Pietro Gagliardi 19227080da Changed window resizes so that the actual Control.setRect() functions 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-17 20:42:36 -04:00
Pietro Gagliardi 34ce16d586 Separated file creation dates from the package comment. 2014-03-12 21:55:45 -04:00
Pietro Gagliardi ee80429bb9 More TODO reduction. 2014-03-11 11:54:32 -04:00
Pietro Gagliardi 962a84e056 Fixed Mac OS X control placement flipping. This is done by passing the height of the window around setRect() calls to avoid polling the content view frame each time. 2014-03-03 17:44:03 -05:00
Pietro Gagliardi 75c34a0789 Fixed incorrect object placement by using the window's content rect, not the window's frame, to define the window size. The coordinate system being flipped is still not fixed. 2014-03-02 19:16:36 -05:00
Pietro Gagliardi 38a1b1b203 Fixed incorrect redrawing of Mac OS X windows after resize. Still need to fix the wrong rect issues... 2014-03-02 19:13:26 -05:00
Pietro Gagliardi bbb37bb2a6 Added Mac OS X Buttons. Code hangs due to a preferredSize() issue... 2014-03-01 21:34:37 -05:00
Pietro Gagliardi d9cf76c1ab Added windowDidResize: to the Mac OS X delegate for resizing windows. Now to figure out why I can't resize windows myself... 2014-03-01 18:01:30 -05:00
Pietro Gagliardi 5caf0fe84a Cleaned up loose ends with the previous commit and got window close events working on Mac OS X. Woo! 2014-03-01 17:15:26 -05:00
Pietro Gagliardi 56eb64429d Fixed most errors. Now I just need to add a sysData pool. 2014-03-01 17:01:28 -05:00
Pietro Gagliardi 9b4e30ccf9 Started to build a single global delegate object; now to fix issues. 2014-03-01 16:56:22 -05:00