summaryrefslogtreecommitdiff
path: root/darwintest
AgeCommit message (Collapse)Author
2014-03-01Now that we have everything up to and including Buttons up and running, we ↵Pietro Gagliardi
no longer need the darwintest.
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-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.