summaryrefslogtreecommitdiff
path: root/darwintest
AgeCommit message (Collapse)Author
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.