Commit Graph

250 Commits

Author SHA1 Message Date
Mathieu Rheaume e8d5c36740 Implement NSString Len + init_str use initWithBytes:length:encoding 2015-09-28 02:42:22 -04:00
bors-servo 7630bbeeb2 Auto merge of #103 - trombonehero:patch-1, r=jdm
Bump version number

Expose recent `NSRunningApplication` changes to Cargo.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/103)
<!-- Reviewable:end -->
2015-09-23 08:48:36 -06:00
Jonathan Anderson bd8a1dc64b Bump version number
Expose recent `NSRunningApplication` changes to Cargo.
2015-09-23 12:13:42 -02:30
bors-servo 2ecce3da1e Auto merge of #102 - codesmythe:issue-98, r=metajack
Do app activation in example through NSRunningApplication to get menubar to work

Issue #98 and a comment in issue #30 both note that the example app has no menu bar when the app starts. This PR changes the activation logic to use NSRunningApplication instead of NSApplication to do the activation. On my Yosemite machine, this causes the menu bar to appear when the example app is started.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/102)
<!-- Reviewable:end -->
2015-09-23 06:26:20 -06:00
Rob Gowin d694e3b801 Delete no longer used value 2015-09-23 07:05:29 -05:00
Rob.Gowin d56b150d2d Activate the example app via NSRunningApplication
This fixes #98, at least on my Yosemite machine.
2015-09-22 22:35:20 -05:00
Rob.Gowin b82bcbe5c5 Added NSRunningApplication and two associated functions.
Added ability to call [[NSRunningApplication currentApplication]
     activateWithOptions: NSApplicationActivateIgnoringOtherApps]
which is used in the example to fix the missing menu bar when
the example app starts.
2015-09-22 22:34:31 -05:00
bors-servo 22791ddd4d Auto merge of #93 - fkaa:menubar-stuff, r=metajack
Add various methods related to menubars



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/93)
<!-- Reviewable:end -->
2015-09-22 13:43:41 -06:00
bors-servo e0f37a07a5 Auto merge of #97 - sgnr:nswindow-managing-responders, r=metajack
Add responder management to NSWindow.

As described [in the documentation for `NSWindow`](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/97)
<!-- Reviewable:end -->
2015-09-22 13:38:07 -06:00
bors-servo 1874dfba83 Auto merge of #101 - paulrouget:v14, r=metajack
Bump version to 0.1.4



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/101)
<!-- Reviewable:end -->
2015-09-22 09:34:49 -06:00
Paul Rouget a22b035d91 Bump version to 0.1.4 2015-09-22 17:25:21 +02:00
bors-servo ed0d018f6a Auto merge of #100 - paulrouget:addSubView, r=metajack
add addSubview method



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/100)
<!-- Reviewable:end -->
2015-09-22 08:48:41 -06:00
Paul Rouget 99cf2944cb add addSubview method 2015-09-22 09:27:56 +02:00
bors-servo 50087816af Auto merge of #99 - paulrouget:yosemiteTitle, r=metajack
Add support for titleVisibility and titlebarAppearsTransparent



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/99)
<!-- Reviewable:end -->
2015-09-21 09:58:32 -06:00
Paul Rouget 06d64a18c8 Add support for titleVisibility and titlebarAppearsTransparent 2015-09-21 11:28:11 +02:00
Simon Génier fd19702e84 Add responder management to NSWindow. 2015-09-12 14:18:58 -04:00
bors-servo df2fbb67ce Auto merge of #95 - mbrubeck:bump0.1.3, r=pcwalton
Bump version to 0.1.3



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/95)
<!-- Reviewable:end -->
2015-07-24 15:17:16 -06:00
Matt Brubeck aff6c3d5db Bump version to 0.1.3 2015-07-24 14:14:58 -07:00
bors-servo 3dc74c2ac5 Auto merge of #79 - servo:travis, r=metajack
Travisify

None
2015-07-10 05:00:05 -06:00
Manish Goregaokar af7b70751d Travisify 2015-07-10 10:59:44 -06:00
Ms2ger 1a9bdf4f57 Merge pull request #94 from servo/unpin
Unpin the bitflags dependency; r=jdm
2015-07-06 09:35:53 +02:00
Ms2ger c927576e8b Unpin the bitflags dependency.
It causes Servo to depend on two versions of the bitflags crate (0.1 and 0.2).
2015-07-05 22:32:19 +02:00
Felix Kaaman d9d30643ac Add various methods related to menubars 2015-06-29 09:23:48 +02:00
Josh Matthews 86c8d5fa8a Merge pull request #92 from SSheldon/core_graphics
Add core-graphics dependency
2015-06-06 09:16:20 -04:00
Steven Sheldon 297a2bf749 Add core-graphics dependency. 2015-06-06 01:12:05 -07:00
Glenn Watson 10df8a788f Merge pull request #91 from metajack/crate-io2
Bring repo and package naming in line with Rust conventions.
2015-06-04 13:44:48 +10:00
Jack Moffitt 8f278a74ef Bring repo and package naming in line with Rust conventions. 2015-06-03 21:43:09 -06:00
Josh Matthews bad95eba97 Merge pull request #90 from metajack/cargo-license
Use correct shorthand for apache license since Cargo checks this.
2015-06-03 17:53:30 -04:00
Jack Moffitt e55a8b7fe4 Use correct shorthand for apache license since Cargo checks this. 2015-06-03 14:44:49 -06:00
Josh Matthews a055a7bf05 Merge pull request #89 from metajack/crates-io
Added more metadata for crates.io publish.
2015-06-03 15:50:30 -04:00
Jack Moffitt dbb91b9e50 Added more metadata for crates.io publish. 2015-06-03 11:59:10 -06:00
Josh Matthews c5ecf76b3b Merge pull request #88 from metajack/platform-deps
Minor cleanups.
2015-06-03 13:07:21 -04:00
Jack Moffitt f85d87826e Minor cleanups. 2015-06-03 10:49:18 -06:00
Lars Bergstrom 07dcca59b1 Merge pull request #87 from fkaa/version-number
Add `NSAppKitVersionNumber`
2015-05-24 10:32:52 -05:00
Felix Kaaman 27a09caba9 Add NSAppKitVersionNumber 2015-05-24 15:29:14 +02:00
Lars Bergstrom 493594f4e2 Merge pull request #85 from fkaa/pixelformat-funcs
Add remaining functions to NSOpenGLPixelFormat
2015-05-05 13:00:28 -05:00
Felix Kaaman b78a1b828c Add remaining functions to NSOpenGLPixelFormat 2015-04-30 11:20:11 +02:00
Brendan Zabarauskas 26d02e3f36 Merge pull request #83 from SSheldon/overflow_sub
Fix overflow in NSTouchPhase definition
2015-04-03 20:18:48 +11:00
Steven Sheldon 8f7351571f Fixed overflow in NSTouchPhase definition. 2015-04-02 08:59:57 -07:00
Josh Matthews 564d8c603c Merge pull request #82 from SSheldon/stable_rust
Remove unused std_misc feature
2015-03-28 18:00:19 -04:00
Steven Sheldon a67cc837b5 Remove unused std_misc feature. 2015-03-28 13:31:16 -07:00
Brendan Zabarauskas a6ccca3e51 Merge pull request #81 from SSheldon/foundation_mod
Split a foundation mod from appkit
2015-03-29 07:22:10 +11:00
Steven Sheldon 89f0929acf Split a foundation mod from appkit. 2015-03-26 22:18:45 -07:00
Brendan Zabarauskas 8cb4e61cc3 Merge pull request #71 from SSheldon/objc_lib
Replace most of base.rs with the objc crate
2015-03-25 13:26:56 +11:00
Steven Sheldon 0dbaa0502c Removed incorrect casts. 2015-03-21 21:20:01 -07:00
Steven Sheldon 2ba1ebbb36 Use objc crate for runtime functions. 2015-03-21 21:20:01 -07:00
Jack Moffitt 07cb7109b6 Merge pull request #80 from Coeuvre/master
Added more methods
2015-03-19 16:10:18 -06:00
Coeuvre Wong 621242eb22 Added more methods 2015-03-19 09:21:51 +08:00
Patrick Walton ca3441a147 Merge pull request #78 from metajack/consistent-fpret
Use objc_msgSend_fpret consistently.
2015-03-06 15:16:14 -08:00
Jack Moffitt e3f85ff51c Use objc_msgSend_fpret consistently. 2015-03-06 16:12:58 -07:00