Mads Marquart

Results 256 issues of Mads Marquart

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

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

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

We should generate tests to ensure that the output of header translation is correct. These does not necessarily need to be included within `icrate`, to reduce crates.io download size. Ideas...

enhancement
A-framework

Objective-C runtimes use C strings, which we convert to and from `&str` in `objc2::runtime`. This unfortunately makes our interop not zero-cost, as we often have to allocate to get an...

enhancement
A-objc2

Methods like `NSAccessibilityElement::accessibilityElementWithRole_frame_label_parent` or `NSResponder::insertTab` take `&AnyObject`. This means that they can assume very little about the object, but that's usually fine, as it's only really used in user-implemented methods...

A-framework