use crate::common::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSDistantObject;
unsafe impl ClassType for NSDistantObject {
type Super = NSProxy;
}
);
extern_methods!(
unsafe impl NSDistantObject {
#[method_id(@__retain_semantics Other proxyWithTarget:connection:)]
pub unsafe fn proxyWithTarget_connection(
target: &Object,
connection: &NSConnection,
) -> Option<Id<Object, Shared>>;
#[method_id(@__retain_semantics Init initWithTarget:connection:)]
pub unsafe fn initWithTarget_connection(
this: Option<Allocated<Self>>,
target: &Object,
connection: &NSConnection,
) -> Option<Id<Self, Shared>>;
#[method_id(@__retain_semantics Other proxyWithLocal:connection:)]
pub unsafe fn proxyWithLocal_connection(
target: &Object,
connection: &NSConnection,
) -> Id<Object, Shared>;
#[method_id(@__retain_semantics Init initWithLocal:connection:)]
pub unsafe fn initWithLocal_connection(
this: Option<Allocated<Self>>,
target: &Object,
connection: &NSConnection,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(
this: Option<Allocated<Self>>,
inCoder: &NSCoder,
) -> Option<Id<Self, Shared>>;
#[method(setProtocolForProxy:)]
pub unsafe fn setProtocolForProxy(&self, proto: Option<&Protocol>);
#[method_id(@__retain_semantics Other connectionForProxy)]
pub unsafe fn connectionForProxy(&self) -> Id<NSConnection, Shared>;
}
);