Commit Graph

8 Commits

Author SHA1 Message Date
Brendan Zabarauskas 90d66dc8a0 Use faithful BOOL type in bindings 2015-01-23 22:43:49 +11:00
Brendan Zabarauskas 274a5f9e87 Remove method traits 2014-11-11 12:18:02 +11:00
Brendan Zabarauskas 4946936733 Eliminate some warnings 2014-11-11 01:19:30 +11:00
Alex Chandel 01d8c72f32 Use autorelease in hello_world 2014-09-23 00:23:22 -04:00
Justin Grimes 86144041e5 Fixed segfaul with invoke_msg_NSPoint_NSPoint. The issue was using objc_msgSend_stret instead of objc_msgSend. 2014-09-23 00:23:22 -04:00
Alex Chandel b14fa888cf Switch class implementation to traits/impls. 2014-09-23 00:21:26 -04:00
Alex Chandel 1c0bcd8fa6 Provide NSWindow -(void)center
This is to demonstrate moving the window in hello_world.rs as an
alternative to cascadeTopLeftFromPoint.
2014-09-23 00:21:26 -04:00
Alex Chandel be0f6bd4d7 Added hello_world example, expanded appkit
This commit adds a Hello World program, which creates and displays a
minimalist Cocoa app with a Menu Bar, a Quit menu, and a Window.

It also wraps the Cocoa methods used in hello_world in static functions
in appkit, inside separate modules for different classes. Later on,
Cocoa methods could be implemented as traits on `id` if that turns out
to be easier.
2014-09-23 00:21:26 -04:00