objc2
Objective-C interface and runtime bindings for Rust.
Most of the core libraries and frameworks that are in use on Apple systems are written in Objective-C; this crate enables you to interract with those.
Example
use ;
use ;
use ;
let cls = class!;
let obj: *mut Object = unsafe ;
let obj: = unsafe ;
// TODO
// let isa = unsafe { obj.ivar::<Class>("isa") };
// assert_eq!(cls, isa);
See the docs for a more thorough overview, or jump right into the examples.
This crate is part of the objc2
project,
see that for related crates.