Commit Graph

75 Commits

Author SHA1 Message Date
bors-servo 2ae6b790de Auto merge of #455 - xiaopengli89:fix-window-number-at-point, r=jrmuizel
fix: windowNumberAtPoint_belowWindowWithWindowNumber_

[windowNumber(at:belowWindowWithWindowNumber:)](https://developer.apple.com/documentation/appkit/nswindow/1419210-windownumber) is a type method.
2021-11-02 16:22:45 -04:00
Max Brunsfeld 39e1e0eeef Add NSSavePanel binding 2021-05-04 13:44:19 -07:00
李小鹏 afb2f80ef3 feat: NSRunningApplication::runningApplicationWithProcessIdentifier 2021-04-13 18:51:29 +08:00
李小鹏 147a432fa9 fix: windowNumberAtPoint_belowWindowWithWindowNumber_ is class method 2021-04-13 18:25:42 +08:00
Max Brunsfeld 52b7bc0a70 Add NSOpenPanel binding 2021-04-08 21:59:54 -07:00
adamnemecek 970b27b9b7 added nscursor 2021-01-15 19:14:39 -08:00
Josh Matthews d3336c3a21 Version bumps for cocoa, core-foundation-sys, core-foundation, core-text, core-graphics-types, core-graphics. 2020-09-15 12:19:56 -04:00
Josh Matthews 95d071234c Bump core-graphics to 0.22.0, core-text to 19.0.0, cocoa to 0.23.0. 2020-09-15 12:15:41 -04:00
Simon Hausmann 3743b68172 Add API for NSView's layerContentsPlacement property 2020-09-04 17:04:19 +02:00
Jeff Muizelaar edb7a8c7fc Add cocoa-foundation crate
This should let gfx-metal-rust avoid depending on core-graphics
2020-07-17 22:48:21 -04:00
Josh Matthews 762a01b90f Major version update for core-foundation-sys and all other dependencies. 2020-06-29 11:45:17 -04:00
Josh Matthews aa69b91def Add missing major version changes. 2020-06-29 11:27:35 -04:00
Josh Matthews 56d8b6c161 Major version change for core-foundation, core-graphics, io-surface, core-text, cocoa. 2020-06-29 11:03:28 -04:00
Josh Matthews d66046fcdc Publish cocoa 0.20.2. 2020-06-23 10:18:06 -04:00
Matthew Kraai 952f72e7bf Build cocoa docs for docs.rs on macOS 2020-06-22 15:02:01 -07:00
bors-servo e721988811 Auto merge of #355 - servo:jdm-patch-4, r=jdm
Remove library special casing from cocoa.

Fixes #354.
2020-05-17 12:55:39 -04:00
Kornel acf2c86930 Fix style warnings 2020-05-08 11:42:06 +01:00
bors-servo 76f9053a89 Auto merge of #375 - casperstorm:feat/extended-nsprogressinfo, r=jdm
feat: extended NSProgressInfo with more functions

I have extended `NSProgressInfo` with two new functions:

* [`operatingSystemVersion`](https://developer.apple.com/documentation/foundation/nsprocessinfo/1410906-operatingsystemversion?language=objc) which returns a `NSOperatingSystemVersion` where you can get `majorVersion`, `minorVersion` and `patchVersion` from.

* [`isOperatingSystemAtLeastVersion`](https://developer.apple.com/documentation/foundation/nsprocessinfo/1414876-isoperatingsystematleastversion?language=objc) which takes a `NSOperatingSystemVersion` struct, and returns a `bool`.

Let me know if I missed something.
2020-05-06 10:08:38 -04:00
Casper Storm bdefcd927e feat: extended NSProgressInfo with more functions 2020-05-06 13:22:06 +02:00
Casper Storm 9c4b5c9310 feat: added binding to NSUserDefaults 2020-04-29 12:22:51 +02:00
Christian Duerr c31f6bd166 Add isKeyWindow function to NSWindow 2020-03-01 21:39:01 +01:00
not_a_seagull 0bc3b53667 Add new methods to NSView 2020-02-13 15:23:06 -08:00
Josh Matthews c9bcf96e69 Remove library special casing from cocoa. 2020-02-12 07:00:09 -05:00
Wez Furlong a11978895e even more version bumps 2019-11-12 14:30:56 -08:00
Wez Furlong 6574b12d4a more version bumps! 2019-11-12 14:16:35 -08:00
Wez Furlong e7f687e3d4 moar version bumps 2019-11-11 20:29:01 -08:00
Ivan Zub 4486e9e208 Bump versions of dependant packages 2019-10-26 20:27:40 +02:00
Steven Sheldon e65c9b2939 Update cocoa version to 0.19.1 2019-10-16 08:08:11 -07:00
Steven Sheldon 0a1b0d6f1b Fixes so the compiler can infer msg_send! return types
Currently, due to a quirk in Rust's type inference interacting with the
structure of the msg_send! macro, a () return type will be inferred when
the compiler cannot otherwise determine the return type. This behavior
is expected to change, and in the future could resolve to a ! return
type, which results in undefined behavior.

Linting has previously been added for this in rust-lang/rust#39216, but
it did not catch these cases due to SSheldon/rust-objc#62. An upcoming
version of objc will be fixed to stop hiding these errors, at which
point they will become compile errors.

This change fixes these errors and allows cocoa to compile with the
fixed version of objc.
2019-10-16 06:50:58 -07:00
svoss 4372c047e6 Adds setTarget to buttons and menu items, these are required in many cases 2019-09-25 06:41:07 -07:00
Aleksi Juvani 552021c096 Fix i686-apple-darwin compile target 2019-08-22 21:56:34 +03:00
bors-servo b18ad75ff8 Auto merge of #327 - seanvoss:add_imageview, r=jdm
Adds Image View Support

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/327)
<!-- Reviewable:end -->
2019-07-23 09:58:52 -04:00
bors-servo 99b4dfe38b Auto merge of #326 - servo:jdm-patch-3, r=asajeffrey
Major version changes for cocoa and io-surface

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/326)
<!-- Reviewable:end -->
2019-07-22 20:26:11 -04:00
Sean Voss 4885ac1384 Adds Image View Support 2019-07-22 15:28:55 -07:00
Josh Matthews 70275f5af1 Update cocoa to 0.19.0 2019-07-17 08:29:40 -04:00
Felix Rabe 8bc0ed06cb Fix NSColor argument order: r b<->g 2019-07-14 23:20:33 +02:00
Birunthan Mohanathas 1ad4d50d16 Fix use of deprecated libc::(u)int{16,32}_t
This fixes warnings like:

>use of deprecated item 'libc::int32_t': Use i32 instead.
2019-07-14 11:57:05 +03:00
Colin Rofls 0d56822550 Add isARepeat 2019-06-07 11:45:24 +02:00
Zeyi Fan e174d01b8a Add some bindings for Appkit and Cocoa Foundation
This commit adds several missing AppKit & Cocoa Foundation bindings. Specifically:

AppKit:

* NSWindowTabbingMode ([Apple Doc](https://developer.apple.com/documentation/appkit/nswindowtabbingmode?language=objc))
* Managing Window Tabs section for NSWindow ([Apple Doc](https://developer.apple.com/documentation/appkit/nswindow?language=objc#3020937))
* NSNib ([Apple Doc](https://developer.apple.com/documentation/appkit/nsnib?language=objc))

Cocoa Foundation

* `init`, `count` and `objectAtIndex` for `NSArray`  ([Apple Doc](https://developer.apple.com/documentation/foundation/nsarray?language=objc))
* `NSBundle` ([Apple Doc](https://developer.apple.com/documentation/foundation/nsbundle?language=objc))
2019-05-04 19:14:51 -07:00
Adrien Navratil f65f59b83a Fixed delegate! example code 2019-05-02 20:05:36 +02:00
Adrien Navratil 054a56d3ed Added delegate! macro 2019-05-02 19:28:52 +02:00
Andy Russell a939bec429 add barebones NSSpellChecker bindings 2019-04-29 18:15:53 -04:00
ecpost 0270070c9d Change NSPasteboard sendData to setData to match Apple's API. 2019-04-07 16:36:43 -07:00
Bruce Mitchener 0fbabb35e9 Use assert_eq! when possible instead of assert! 2019-03-21 21:55:00 +07:00
Bruce Mitchener d2d3b3362a Refer to macOS rather than OS X. 2019-03-14 17:47:00 +07:00
bors-servo 488aa87f21 Auto merge of #275 - acheronfail:chore/add-nsurl, r=jdm
add NSURL

This PR adds in the trait for `NSURL` (requested in #183).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/275)
<!-- Reviewable:end -->
2019-03-11 09:01:30 -04:00
acheronfail b08aa69460 chore: use bitflags to create NSURL constants 2019-03-11 07:54:32 +11:00
Andy Russell 6884430a82 add NSNotFound constant 2018-11-10 16:16:37 -05:00
acheronfail 4d92078a1b add NSURL 2018-11-09 18:02:03 +11:00
acheronfail 6148a59381 chore: add NSColorSpace and more methods to NSColor
fixes #184
fixes #251
2018-11-09 09:48:20 +11:00