summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-03-01Whoops, misspelled -[NSWindow frame] as -[NSWindow _frame]. Fixed; test ↵Pietro Gagliardi
program works so far!
2014-03-01Oops, accidentally removed the code that actually makes the ↵Pietro Gagliardi
appdelegateclass. Almost working...
2014-03-01Documentation and TODO changes.Pietro Gagliardi
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-01Fixed Mac OS X sysData.setWindowSize() to get the window origin. Now to fix ↵Pietro Gagliardi
the rest of the errors...
2014-03-01Fixed various Mac OS X compilation errors.Pietro Gagliardi
2014-03-01Added initial Mac OS X sysData code. Almost ready for first test build, ↵Pietro Gagliardi
hopefully?
2014-03-01More TODOs.Pietro Gagliardi
2014-03-01Fixed typo in objc_darwin.h.Pietro Gagliardi
2014-03-01Changed package main to package ui in darwintest/ imports.Pietro Gagliardi
2014-03-01Added _setDelegate to the common Objective-C selectors list and added a ↵Pietro Gagliardi
clarity wrapper function objc_setDelegate().
2014-03-01Added objc_msgSend_ptr(), needed by uitask_darwin.go.Pietro Gagliardi
2014-03-01Added objc_msgSend_stret_size_noargs(), needed by the Mac OS X ↵Pietro Gagliardi
sysData.preferredSize().
2014-03-01Moved the Objective-C wrappers and helpers out of darwintest.Pietro Gagliardi
2014-03-01Added preferred size code for Mac OS X.Pietro Gagliardi
2014-02-28Added the final version of the Mac OS X delegate type code.Pietro Gagliardi
2014-02-28Added the ui() for OS X.Pietro Gagliardi
2014-02-28Removed the NSNotificationCenter stuff since we're not using that to run UI ↵Pietro Gagliardi
operations on the main thread anymore.
2014-02-28Split the actual delegate into a separate file; this simplifies even more ↵Pietro Gagliardi
things. I think we're as clean as we can go... should probably start writing the real backend now :D
2014-02-28Removed a leftover declaration in objc_darwin.h.Pietro Gagliardi
2014-02-28Cleaned up newtypes.go.Pietro Gagliardi
2014-02-28Moved some Objective-C stuff to objc_darwin.go, added some helper functions ↵Pietro Gagliardi
there too, and cleaned up runtimetest.go.
2014-02-28Renamed bleh_darwin.go to objc_darwin.go so I can clean up Objective-C stuff ↵Pietro Gagliardi
into it.
2014-02-28Quick wording fix in the bleh_darwin.m comments.Pietro Gagliardi
2014-02-28Added a .m file to handle the edge cases in objc_msgSend() wrappers that ↵Pietro Gagliardi
cannot be easily expressed otherwise.
2014-02-28Split most of the objc_msgSend() wrappers into a C header file for ↵Pietro Gagliardi
convenience. The NSRect functions require special handling because of Apple stupidities that will be discussed when I get to that.
2014-02-28Set up a NSAutoreleasePool for notify() to suppress memory leak warnings.Pietro Gagliardi
2014-02-28Changed the main thread signaling to use NSObject's ↵Pietro Gagliardi
performSelectorOnMainThread: functionality, which settles that. NSString requires an autorelease pool; in testing, so does NSValue, which we are eventually going to use. NSAutoreleasePool's docs suggest we should create a temporary pool for things running in other threads, but then we have to release it... but I guess we're waiting for the function to complete on other platforms already, so no big deal here.
2014-02-28Added a notification system, hopefully allowing us to merge AppKit requests ↵Pietro Gagliardi
onto a single thread. In practice, this generates autorelease pool leak messages; it appears notifications are not for this...
2014-02-28Added a button bezel style to the darwintest button.Pietro Gagliardi
2014-02-28Added a button to the darwin test and had it respond to clicks. Committing ↵Pietro Gagliardi
as is because without a bezelStyle ther esult is just... wow. 1990s Windows look and feel for the win?
2014-02-28Built a window delegate and ran the event loop. It works!Pietro Gagliardi
2014-02-27Added code to create new Objective-C types at runtime, which will be ↵Pietro Gagliardi
important both for handling custom messages and for handling events.
2014-02-27And we now have a window in the darwin test! You can't really do much with ↵Pietro Gagliardi
it since the Cocoa event loop isn't running, but it can be moved around!
2014-02-27Wrote helper functions for objc_getClass() and sel_getUid().Pietro Gagliardi
2014-02-27Added a helper script for building 32-bit darwin binaries.Pietro Gagliardi
2014-02-27Ported the runtime test to Go. It works in both 32-bit and 64-bit!Pietro Gagliardi
2014-02-27Now that I have a working Mac OS X setup, added the initial groundwork for ↵Pietro Gagliardi
the OS X port. This C file works correctly on both amd64 and i386 with clang [-m32] runtimetest.c -lobjc -framework Foundation; it will be converted to Go now.
2014-02-26Added Grid.SetStretchy to allow one control in a Grid to fill the parent ↵Pietro Gagliardi
Control's space, even when resizing.
2014-02-25Added a way to let Controls in a Grid be sized to fill their cells.Pietro Gagliardi
2014-02-25Updated a TODO in the control candidates document related to Windows Common ↵Pietro Gagliardi
Controls.
2014-02-25Rewrote the unstable warning at the top of README.md.Pietro Gagliardi
2014-02-25Lock Stack's mutex lock like with all other Controls.Pietro Gagliardi
2014-02-25No longer preliminary (I was going to wait until I started the OS X backend, ↵Pietro Gagliardi
but).
2014-02-25More documentation fixups.Pietro Gagliardi
2014-02-25Fixed up Grid and Space() documentation.Pietro Gagliardi
2014-02-25Wrote the Grid test and found/fixed one error in Grid's position ↵Pietro Gagliardi
calculations. (If you compare the previous Windows build with this one, you may not notice a difference; this is because of the default preferred size of Labels being too wide).
2014-02-25Added untested initial Grid. Now to write a test.Pietro Gagliardi