Mads Marquart

Results 251 issues of Mads Marquart

The discrepancy between usage of `Class`/`Object`/... and `Sel` annoyed me, the others were used behind pointers / references, while `Sel` was consumed directly. This changes the definition of `Sel` to...

## The issue In Objective-C, having a null pointer receiver is valid, but with `msg_send!` it would be converted into a reference, which is undefined behavior - yes, even though...

To see what changes we'd have to make in the library to use `extern type` ([RFC-1861](https://rust-lang.github.io/rfcs/1861-extern-types.html)) when it's is stabilized. This requires https://github.com/SSheldon/rust-objc-encode/pull/7. Unfortunately had to change some usage of...

Builds upon https://github.com/SSheldon/rust-objc/pull/99, so merge that first. I've heard claims that the `objc_msgSend`-part of `msg_send` is not zero-cost (see [fruity index](https://github.com/nvzqz/fruity#zero-cost)), so this is my attempt at investigating this

## Introduction Hey, I've been thinking about how to make Objective-C's and Rust's memory models play nicer together. Objective-C has two different "states" for references: Retained and autoreleased. In Rust...

Builds upon https://github.com/SSheldon/rust-objc/pull/96, so merge that first. Makes the CI cleaner, and runs iOS builds on nightly (by using the [`build-std` unstable cargo feature](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-std)) instead of tying us down to...

In particular makes it easier to use `StrongPtr`

See https://github.com/rust-lang/rust-bindgen/issues/1791

S-awaiting-review

`set_virtual_terminal` was changed in https://github.com/mackwic/colored/pull/68 to never return an error - this is probably incorrect, as the underlying Win32 functions can definitely return errors. Error handling grabbed from https://github.com/borntyping/rust-simple_logger/pull/11

`Resource.as_view` was added in 6c3e83cc12e45c8706ca064053e69d5812bb12f6, in 2014, but the `FlaskResource` was not updated to use it.