Mads Marquart

Results 256 issues of Mads Marquart

I was [once convinced](https://github.com/SSheldon/rust-objc/issues/112#issuecomment-1139443814) that we could restrict mutation to `&mut self` methods, but after [having battled with AppKit](https://github.com/rust-windowing/winit/pull/2465) and seen how Swift does it, I'm beginning to doubt that...

bug
documentation
help wanted
A-objc2::foundation

They don't currently for some reason! Discovered in https://github.com/madsmtm/objc2/pull/254.

bug
A-framework

An idea for making a trait to tell whether a specific class is a subclass of another. Basically, the more generic version of the `ClassType` trait. The need arises on...

enhancement
A-objc2

In Apple's Objective-C headers, most classes and methods are annotated with an availability attribute such as `API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))`; this is absolutely a _great_ idea (!!!), it very cleanly...

enhancement
help wanted
A-framework

Deriving `PartialEq`, `Eq` and `Hash` automatically in `extern_class!` works because it delegates to a `msg_send!` call to the relevant selector. `#[derive(Debug)]`, however, prints out the internal variable name as well...

enhancement
good first issue
A-objc2

Hey, thanks a lot for making this library, it's great! When you get around to releasing a new version, may I suggest the following? - A lot of methods use...

Hi @wonga00, just a quick notification that this was (and is at the moment of writing) on the front page of [Hacker News](https://news.ycombinator.com/), see the item [here](https://news.ycombinator.com/item?id=20432772). Thanks for creating...

### Problem The environment variables `MACOSX_DEPLOYMENT_TARGET`, `IPHONEOS_DEPLOYMENT_TARGET`, `TVOS_DEPLOYMENT_TARGET` and `WATCHOS_DEPLOYMENT_TARGET` are standard environment variables on Apple targets, and are used by compilers to get the desired minimum supported operating system...

C-feature-request
A-build-scripts
O-macos
S-needs-team-input

Cargo has the ability to specify that a build script depends on specific environment variables using [`cargo:rerun-if-env-changed=NAME`](https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-env-changed), but no such mechanism exist for C compilers (that I know of). This...

This confused me for a while, but this is just fundamentally how static libraries work. Wading through some history on this, I think when specifying `--crate-type=staticlib`, rustc used to output...