bors-servo
f545d5bb28
Auto merge of #123 - pcwalton:nsview-additions, r=larsbergstrom
...
Add autosizing-related methods and constants to `NSView`, and add `NSRectFill`.
r? @larsbergstrom
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/123 )
<!-- Reviewable:end -->
2016-05-09 11:29:20 -07:00
Patrick Walton
2028cee801
Add the venerable NSRectFill.
2016-05-09 11:02:38 -07:00
Patrick Walton
f461b65eda
Add autosizing-related methods and constants to NSView.
2016-05-09 11:01:02 -07:00
bors-servo
ac2eaf8348
Auto merge of #122 - servo:derive-appkit, r=mbrubeck
...
Derive common traits for AppKit integer repr enums.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/122 )
<!-- Reviewable:end -->
2016-04-28 16:21:27 -07:00
Corey Farwell
976e6dbc70
Derive common traits for AppKit integer repr enums.
2016-04-28 19:15:23 -04:00
bors-servo
7241894cd5
Auto merge of #121 - servo:activation-policy-prohibited, r=larsbergstrom
...
Add `NSApplicationActivationPolicyProhibited`.
https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSRunningApplication_Class/#//apple_ref/c/tdef/NSApplicationActivationPolicy
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/121 )
<!-- Reviewable:end -->
2016-04-28 08:25:53 -07:00
Corey Farwell
f037498244
Add NSApplicationActivationPolicyProhibited.
...
https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSRunningApplication_Class/#//apple_ref/c/tdef/NSApplicationActivationPolicy
2016-04-28 10:35:50 -04:00
bors-servo
139eb8fa12
Auto merge of #119 - conradev:nsfastenumeration, r=jdm
...
Added basic NSFastEnumeration implementation
This allows you to turn any Foundation collection into an `Iterator`. The basic implementation is derived from @mikeash's [blog post](https://www.mikeash.com/pyblog/friday-qa-2010-04-16-implementing-fast-enumeration.html ) on the subject.
Let me know what you think!
I have not yet decided how best to handle a change in the mutation pointer – that still remains to be implemented.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/119 )
<!-- Reviewable:end -->
2016-04-01 01:45:56 +05:30
Conrad Kramer
d874e1d9d8
Added basic NSFastEnumeration implementation
2016-03-31 13:08:05 -07:00
bors-servo
0686ec3ca1
Auto merge of #120 - SSheldon:objc2, r=Ms2ger
...
Update objc dependency to 0.2
I just published version 0.2 of the objc crate, changelog here: https://github.com/SSheldon/rust-objc/blob/master/CHANGELOG.md#020
Main differences are gnustep support, (optionally) more type checking, removed the libc dependency, and fixed a bug in the space reserved for ivars when declaring classes.
No changes required to cocoa, but since it exports a lot of objc types this update is a breaking change and requires a version bump to 0.3.
Testing done: verified everything compiles, tests pass, hello_world example still works, and also tested glutin against objc 0.2.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/120 )
<!-- Reviewable:end -->
2016-03-21 13:39:01 +05:30
Steven Sheldon
18fd63a576
Update objc to 0.2 and bump cocoa to 0.3.
2016-03-20 15:44:59 -07:00
bors-servo
98aceab548
Auto merge of #118 - servo:core-graphics, r=Ms2ger
...
Allow core-graphics 0.3
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/118 )
<!-- Reviewable:end -->
2016-03-09 21:27:50 +05:30
Anthony Ramine
26d7978a13
Allow core-graphics 0.3
2016-03-09 16:54:43 +01:00
Josh Matthews
768538d630
Merge pull request #116 from fkaa/foundation-nsrange
...
Add NSRange
2016-02-27 16:48:30 -05:00
Josh Matthews
2d30ae808a
Merge pull request #115 from fkaa/window-funcs
...
Add NSView functions
2016-02-27 16:47:36 -05:00
Felix Kaaman
ff18c50631
Add NSRange
2016-02-27 22:12:50 +01:00
Felix Kaaman
e403c78fee
Add NSView functions
2016-02-27 22:02:09 +01:00
bors-servo
9933690479
Auto merge of #114 - servo:sudo-false, r=Ms2ger
...
Remove now default 'sudo: false'
`sudo: false` is now default on Travis CI
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/114 )
<!-- Reviewable:end -->
2016-02-27 21:30:50 +05:30
Corey Farwell
f10177fcb2
Remove now default 'sudo: false'
...
`sudo: false` is now default on Travis CI
2016-02-27 10:59:41 -05:00
bors-servo
8ba637e5ef
Auto merge of #113 - paulrouget:versionBump, r=frewsxcv
...
version bump
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/113 )
<!-- Reviewable:end -->
2016-02-17 09:14:06 +05:30
Paul Rouget
d9cf770a3c
version bump
2016-02-17 04:42:29 +01:00
bors-servo
6cf6e00ffb
Auto merge of #112 - paulrouget:pressureEvent, r=jdm
...
add NSEventTypePressure event type
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/112 )
<!-- Reviewable:end -->
2016-02-16 19:16:53 +05:30
Paul Rouget
f21ffe6dc1
add NSEventTypePressure event type
2016-02-16 13:09:30 +01:00
Josh Matthews
f51d247d0f
Merge pull request #111 from pcwalton/window-buttons
...
Add bindings to -[NSWindow standardWindowButton:] and -[NSView removeFromSuperview].
2016-02-03 17:58:32 -05:00
Patrick Walton
bf4879fa00
Add bindings to -[NSWindow standardWindowButton:] and -[NSView
...
removeFromSuperview].
2016-02-03 14:53:45 -08:00
Josh Matthews
648c65392f
Merge pull request #110 from pcwalton/superview
...
Add a binding to -[NSView superview].
2016-02-03 17:21:24 -05:00
Patrick Walton
3d09c6517a
Add a binding to -[NSView superview].
2016-02-03 14:15:18 -08:00
Josh Matthews
712efcc25d
Merge pull request #109 from hnry/master
...
status bar button (icon)
2016-02-02 08:51:25 -05:00
hc
20c994ecaa
NSImage methods and version bump
...
added some methods to NSImage and version bump to 0.2.3
2016-01-29 22:22:01 -05:00
hc
36f4d4cab3
NSStatusBar
...
mostly complete, missing `thickness` property, unsure how to access
this property
2016-01-29 21:29:53 -05:00
hc
5d3fd95607
forgot _ for NSStatusItem setLength
...
whoops forget to add _ for setLength
2016-01-29 21:06:46 -05:00
hc
94efc59d57
NSStatusItem
...
NSStatusItem fully implemented
2016-01-29 21:04:49 -05:00
hc
a96019726c
init status bar button (icon)
...
the minimum to get a status bar button (icon) to appear
2016-01-29 12:19:51 -05:00
bors-servo
727e5dc6e2
Auto merge of #108 - servo:strings-arrays-and-values-oh-my, r=metajack
...
Add various initializing methods for NSString, NSArray, and NSValue.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/108 )
<!-- Reviewable:end -->
2015-11-28 01:34:47 +05:30
Josh Matthews
c21f19bba2
Add various initializing methods for NSString, NSArray, and NSValue.
2015-11-27 10:26:39 -05:00
bors-servo
302aa86a54
Auto merge of #107 - metajack:crate-bump, r=pcwalton
...
Bump version for publish.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/107 )
<!-- Reviewable:end -->
2015-11-18 01:02:33 +05:30
Jack Moffitt
08eaff8efa
Bump version for publish.
2015-11-17 12:29:53 -07:00
bors-servo
2d48fd540e
Auto merge of #106 - sgnr:nsrect-encoding, r=metajack
...
Implement objc::Encode for NSRect.
This PR implements `objc::Encode` for `NSRect`, `NSSize` and `NSPoint`. The goal is to be able to send messages that take `NSRect` arguments such as `initWithFrame:`.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/106 )
<!-- Reviewable:end -->
2015-11-18 00:51:29 +05:30
Simon Génier
fe8cc9fcdf
Implement objc::Encode for NSRect.
2015-11-16 22:09:00 -05:00
bors-servo
e2787fae8f
Auto merge of #105 - mbrubeck:libc0.2, r=metajack
...
Upgrade to libc 0.2
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/105 )
<!-- Reviewable:end -->
2015-11-06 22:38:31 +05:30
Matt Brubeck
cb2842a171
Upgrade to libc 0.2
2015-11-06 09:07:59 -08:00
bors-servo
018e989379
Auto merge of #104 - ddrmanxbxfr:NSStringImprovements, r=metajack
...
Implement NSString Len + init_str use initWithBytes:length:encoding
Hi guys,
this PR makes a few improvements to the NSString bindings.
It adds the following :
1. solves issue #73 to use initWithBytes:length:encoding in init_str.
2. Adds cargo tests on append_string, utf8 conversion and init string.
3. Adds a length function.
Thanks for looking into it.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/104 )
<!-- Reviewable:end -->
2015-09-28 09:31:15 -06:00
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