rust-objc icon indicating copy to clipboard operation
rust-objc copied to clipboard

Objective-C Runtime bindings and wrapper for Rust.

Results 39 rust-objc issues
Sort by recently updated
recently updated
newest added

It would be better if selectors were resolved at compile time instead of using sel_registerName

because there are 16-argument method in Apple library https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143562-encodereprojectiontocommandbuffe

I'm currently attempting to call the controllers functions as seen [here](https://developer.apple.com/documentation/gamecontroller/gccontroller/1458871-controllers) in order to get a list of connected controllers on mac. I'm attempting to achieve this with the following...

I'm modifying a library that uses objc. I need to import a constant NSString. I tried `const* NSString` and `Id` but rustc warned me that these are not "FFI safe"....

```objc if (@available(macOS 10.15, *)){ /// whatever } ``` How would I do this in rust?

Adding a method to a `ClassDecl` isn't ergonomic because you need to cast the function to a function pointer, like so: ``` rust add_method(sel!(setFoo:), my_obj_set_foo as extern fn(&mut Object, Sel,...

So, during my work on [`objc2`](https://github.com/madsmtm/objc2) I decided to test some things in [Miri](https://github.com/rust-lang/miri), to try to get a feel for how sound everything is, and found this issue (which...

## Introduction Hey @SSheldon, I really like your collection of Objective-C crates: - [`objc`](https://github.com/SSheldon/rust-objc) - [`objc-encode`](https://github.com/SSheldon/rust-objc-encode) - [`objc_exception`](https://github.com/SSheldon/rust-objc-exception) - [`objc_id`](https://github.com/SSheldon/rust-objc-id) - [`objc-foundation`](https://github.com/SSheldon/rust-objc-foundation) - [`block`](https://github.com/SSheldon/rust-block) - [`uikit`](https://github.com/SSheldon/rust-uikit) - ([`dispatch`](https://github.com/SSheldon/rust-dispatch)) For better...

I found a strange conflict issue between `NSScreen` and `NSProcessInfo`. Using both `NSProcessInfo.operatingSystemVersion` and `UIScreen.mainScreen` will cause the application to crash with "segmentation fault". But I can't imagine the relation...

My WIP on https://github.com/SSheldon/rust-objc/issues/95. Adds `Retained`, a smart pointer version of `StrongPtr`, but with more guarantees. Notably, this has an `Deref` implementation, which makes it more ergonomic and safer to...