Commit Graph

35 Commits

Author SHA1 Message Date
Steven Sheldon 89f0929acf Split a foundation mod from appkit. 2015-03-26 22:18:45 -07:00
Steven Sheldon 2ba1ebbb36 Use objc crate for runtime functions. 2015-03-21 21:20:01 -07:00
Hyeon Kim c0e12fdccf Fix compile warning
1.  You don't need `#![feature(hash)]` anymore.
2.  `CString::from_slice` is deprecated now.
2015-02-27 10:03:15 +09:00
Patrick Walton b8a33f19a1 Use objc_msgSend_fpret for backingStoreFactor.
This mistake led to a bizarre chain reaction in Servo that ultimately
led to a hang only when optimization was enabled.
2015-02-20 22:17:53 -08:00
Skyler Lipthay d23a4a177f Use libc::ptrdiff_t instead of defining ptrdiff_t manually 2015-02-08 17:16:40 -08:00
Skyler Lipthay 7a2e87a0df Flushed out the entirety of the Objective-C runtime. Added some extra documentation. 2015-02-08 01:29:11 -08:00
Brendan Zabarauskas 90d66dc8a0 Use faithful BOOL type in bindings 2015-01-23 22:43:49 +11:00
Brendan Zabarauskas 67dc6b7c8b Add Nil 2015-01-23 22:42:51 +11:00
Sam Ward d44a1b8520 Replace target_word_size with target_pointer_width 2015-01-12 14:04:40 -08:00
Sam Ward 604141a324 Update for 1.0.0-alpha compatibility 2015-01-09 21:59:17 -08:00
Jack Moffitt bf53a53ce3 Merge pull request #51 from poiru/fix-rustc-fc2ba1393
Fix build failure with latest Rust nightly
2015-01-05 09:42:58 -07:00
Birunthan Mohanathas 4996cf5ab2 Fix dangling pointer with to_c_str().as_mut_ptr() 2015-01-04 17:59:59 +02:00
Birunthan Mohanathas 9f9705df62 Fix build failure with latest Rust nightly 2015-01-04 17:56:32 +02:00
David Partouche 0a951a6cdd Forgot to switch to the new msg_send system 2014-11-11 23:54:39 +01:00
Brendan Zabarauskas 274a5f9e87 Remove method traits 2014-11-11 12:18:02 +11:00
David Partouche ad2f33054e Removed NSEventSubtype, as it's only available from 10.10 2014-11-10 18:52:21 +01:00
David Partouche 27b5307956 Fixed some merge issues 2014-11-10 18:42:21 +01:00
David Partouche 51d6a9b463 Added more functions to grab NSEvent keycodes 2014-11-10 18:25:21 +01:00
David Partouche f3a488d98a Added more NSEvent functions for glutin 2014-11-10 18:23:14 +01:00
David Partouche f9f7161c4c Added some functions used for mouse events 2014-11-10 18:21:48 +01:00
David Partouche b821489e9b Added NSDate and NSEvent functions to handle events in the glutin crate 2014-11-10 18:18:39 +01:00
David Partouche 36966ddf74 Added some functions and types used for glutin 2014-11-10 18:15:21 +01:00
David Partouche 51a5137a20 Added some functions and types used for glutin 2014-11-10 18:11:38 +01:00
Brendan Zabarauskas 4946936733 Eliminate some warnings 2014-11-11 01:19:30 +11:00
Brendan Zabarauskas ce40173504 Fix doc tests 2014-11-11 01:17:10 +11:00
Brendan Zabarauskas 0c58565978 Remove msgsend.m 2014-11-11 00:59:47 +11:00
Brendan Zabarauskas 05ed03136b Add window size methods 2014-11-10 23:32:34 +11:00
Brendan Zabarauskas 3614ac893b Add window layer and coordinate methods 2014-11-10 23:06:51 +11:00
doug 24e7b38bc6 Makes traits public to fix the build 2014-10-18 12:50:16 +08:00
Jack Moffitt 39ae55c8d3 Merge pull request #31 from alexchandel/hello_world
Added hello_world example, expanded appkit
2014-10-04 12:53:53 -06:00
Simon Sapin acb9b4efc7 Upgrade to rustc d2b30f7d3 2014-09-23 2014-09-27 10:25:40 +01: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 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
Keegan McAllister 8cda2336fc Make invoke_msg bindings public for rust-alert 2014-09-19 09:59:44 -07:00
Jack Moffitt 55a92e9985 Cargoify rust-cocoa
This must build on non-mac platform too, since Cargo doesn't have
support for conditional dependencies yet.
2014-08-25 18:26:08 -06:00