Support downcasting #559
Labels
A-objc2
Affects the `objc2`, `objc-sys` and/or `objc2-encode` crates
enhancement
New feature or request
Milestone
I just had to write this.. monstrosity!!
Original attempt (segfault)
CFType
andCFNumber
are fromcore_foundation
, which supports downcasting via type id. Its CFNumber interface is weirdly incomplete though, hence all the unwraps.EDIT: I thought this would work because of toll-free bridging, but it segfaults. So I went with the approach in #474, which is a bit nicer.
I see this is being worked on in #474 but thought this would lend some motivation.
Thanks for your work on this crate!
The text was updated successfully, but these errors were encountered: