Mads Marquart

Results 394 comments of Mads Marquart

Sure, see https://github.com/servo/core-foundation-rs/pull/527

In #264 I'll probably be using `Id` and `&T` by default everywhere, since `T` contains `UnsafeCell` and all methods are `unsafe` anyhow. At this point I really doubt `Id` will...

Related: `Class`, `Ivar`, `Method`, ... also assume that they're actual pointers (and as such cannot just be indices into a global table)

The biggest problem I had with this approach was that the separation between a `sys` crate and a "Rusty" crate lead to a lot of unnecessary duplication - and you're...

The situation has gone a long way since I opened this issue! A few remaining things are https://github.com/madsmtm/objc2/issues/282 and https://github.com/madsmtm/objc2/issues/283, but I went and opened separate issues for that to...

Thanks for the use-case, I think it's very similar to what Metal does. Also, further ideas: ```rust // in objc2 unsafe trait ConformsTo: Message { fn as_protocol(&self) -> &P {...

Note: Some protocols are "virtual", see [the `objc_non_runtime_protocol` attribute](https://clang.llvm.org/docs/AttributeReference.html#objc-non-runtime-protocol), so as part of this it would make sense to store information about the protocol's methods in a way that we...

I took a look at a lot of protocols, as a summary I've tried to categorize the different usage of protocols as follows: 1. The user can implement it to...

Wow, can't believe I didn't think of this before: Protocols can have class methods! They're quite rare though, the only instances in `Foundation` + `AppKit` are the following (so understandable...

We need some way to specify to the macro "this protocol inherits from `NSObject`", so that the `__inner` field can be `NSObject`, and `#[derive(Debug, PartialEq, Eq, Hash)]` works. But maybe...