objc2 icon indicating copy to clipboard operation
objc2 copied to clipboard

Bindings to Apple's frameworks in Rust

Results 150 objc2 issues
Sort by recently updated
recently updated
newest added

`header-translator`'s output, and by extension `icrate`, is basically undocumented, and especially after https://github.com/madsmtm/objc2/pull/574, it would make sense to have a central place to document how it works.

documentation
A-framework

Calling blocks should be possible without having to specify the awkward tuple argument (i.e. `block.call((42,))`). Idea for solution ([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=9f4b7018b2856c463111a37f3ecde8c4)), credit to @yury for the idea: ```rust impl Block R> {...

enhancement
A-block2

When using `MTKView` for rendering with the Metal API there seems to be no way to access the [`currentDrawable`](https://developer.apple.com/documentation/metalkit/mtkview/currentdrawable?language=objc) property of `MTKView` so we can present it. Currently I do...

bug
A-icrate

It would be nice if we could get automatic memory management for blocks as well, instead of having to specify returned blocks as `*mut Block`, and then converting those with...

enhancement
A-objc2
A-block2

Clang has bindings for Swift's [`@Sendable`](https://developer.apple.com/documentation/swift/sendable#Sendable-Functions-and-Closures) protocol on blocks (with the default being non-sendable), we should add support for this into `block2`. Basic idea is to allow `Block`, though since...

enhancement
A-block2

Upstream issue: https://github.com/SSheldon/rust-block/issues/12. Should we allow `Block`, and how would we do it safely? At the very least, we'd have to prevent any form of `Block::copy`/`RcBlock::clone` on these, as that...

enhancement
A-block2

So... I've kinda considered this problem many times, https://github.com/madsmtm/objc2/issues/265 contains some of the previous discussion and my head contains even more, but I feel like we're still not at an...

A-framework

Rename `Foundation` to `Foundation_core` (and similarly for the other features).

enhancement
A-icrate

I'm exposing this Rust function to Swift: ```rust #[no_mangle] pub extern "C" fn time_series_eval( exprs: *mut NSArray, error: &mut *mut NSError, ) -> *mut NSDictionary { let exprs = exprs.as_ref().unwrap().iter();...

bug
A-objc2

Fixes https://github.com/madsmtm/objc2/issues/566. Unsure if this is the correct path forwards. Do signed-ness ever matter ABI-wise? The Rust docs [says](https://doc.rust-lang.org/nightly/std/primitive.fn.html) on ABI of `i32` vs `u32`: > on some targets, the...

help wanted
A-objc2