use crate::common::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSProtocolChecker;
unsafe impl ClassType for NSProtocolChecker {
type Super = NSProxy;
}
);
extern_methods!(
unsafe impl NSProtocolChecker {
#[method_id(@__retain_semantics Other protocol)]
pub unsafe fn protocol(&self) -> Id<Protocol, Shared>;
#[method_id(@__retain_semantics Other target)]
pub unsafe fn target(&self) -> Option<Id<NSObject, Shared>>;
}
);
extern_methods!(
unsafe impl NSProtocolChecker {
#[method_id(@__retain_semantics Other protocolCheckerWithTarget:protocol:)]
pub unsafe fn protocolCheckerWithTarget_protocol(
anObject: &NSObject,
aProtocol: &Protocol,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithTarget:protocol:)]
pub unsafe fn initWithTarget_protocol(
this: Option<Allocated<Self>>,
anObject: &NSObject,
aProtocol: &Protocol,
) -> Id<Self, Shared>;
}
);