* Upgrade to objc2 v0.4.0 and icrate v0.0.3 * Fix `touchBar` method * Use ClassType::alloc * Use #[method_id(...)] functionality in declare_class!
9 lines
204 B
Rust
9 lines
204 B
Rust
use objc2::{extern_protocol, ProtocolType};
|
|
|
|
extern_protocol!(
|
|
pub(crate) unsafe trait NSTextInputClient {
|
|
// TODO: Methods
|
|
}
|
|
|
|
unsafe impl ProtocolType for dyn NSTextInputClient {}
|
|
);
|