81 lines
2.8 KiB
Rust
81 lines
2.8 KiB
Rust
//! This file has been automatically generated by `objc2`'s `header-translator`.
|
|
//! DO NOT EDIT
|
|
use objc2::__framework_prelude::*;
|
|
|
|
use crate::*;
|
|
|
|
extern_class!(
|
|
#[derive(Debug, PartialEq, Eq, Hash)]
|
|
#[cfg(feature = "NSProxy")]
|
|
#[deprecated = "Use NSXPCConnection instead"]
|
|
pub struct NSDistantObject;
|
|
|
|
#[cfg(feature = "NSProxy")]
|
|
unsafe impl ClassType for NSDistantObject {
|
|
type Super = NSProxy;
|
|
type Mutability = InteriorMutable;
|
|
}
|
|
);
|
|
|
|
#[cfg(all(feature = "NSObject", feature = "NSProxy"))]
|
|
unsafe impl NSCoding for NSDistantObject {}
|
|
|
|
#[cfg(feature = "NSProxy")]
|
|
unsafe impl NSObjectProtocol for NSDistantObject {}
|
|
|
|
extern_methods!(
|
|
#[cfg(feature = "NSProxy")]
|
|
unsafe impl NSDistantObject {
|
|
#[cfg(feature = "NSConnection")]
|
|
#[deprecated = "Use NSXPCConnection instead"]
|
|
#[method_id(@__retain_semantics Other proxyWithTarget:connection:)]
|
|
pub unsafe fn proxyWithTarget_connection(
|
|
target: &AnyObject,
|
|
connection: &NSConnection,
|
|
) -> Option<Retained<AnyObject>>;
|
|
|
|
#[cfg(feature = "NSConnection")]
|
|
#[deprecated = "Use NSXPCConnection instead"]
|
|
#[method_id(@__retain_semantics Init initWithTarget:connection:)]
|
|
pub unsafe fn initWithTarget_connection(
|
|
this: Allocated<Self>,
|
|
target: &AnyObject,
|
|
connection: &NSConnection,
|
|
) -> Option<Retained<Self>>;
|
|
|
|
#[cfg(feature = "NSConnection")]
|
|
#[deprecated = "Use NSXPCConnection instead"]
|
|
#[method_id(@__retain_semantics Other proxyWithLocal:connection:)]
|
|
pub unsafe fn proxyWithLocal_connection(
|
|
target: &AnyObject,
|
|
connection: &NSConnection,
|
|
) -> Retained<AnyObject>;
|
|
|
|
#[cfg(feature = "NSConnection")]
|
|
#[deprecated = "Use NSXPCConnection instead"]
|
|
#[method_id(@__retain_semantics Init initWithLocal:connection:)]
|
|
pub unsafe fn initWithLocal_connection(
|
|
this: Allocated<Self>,
|
|
target: &AnyObject,
|
|
connection: &NSConnection,
|
|
) -> Retained<Self>;
|
|
|
|
#[cfg(feature = "NSCoder")]
|
|
#[deprecated = "Use NSXPCConnection instead"]
|
|
#[method_id(@__retain_semantics Init initWithCoder:)]
|
|
pub unsafe fn initWithCoder(
|
|
this: Allocated<Self>,
|
|
in_coder: &NSCoder,
|
|
) -> Option<Retained<Self>>;
|
|
|
|
#[deprecated = "Use NSXPCConnection instead"]
|
|
#[method(setProtocolForProxy:)]
|
|
pub unsafe fn setProtocolForProxy(&self, proto: Option<&AnyProtocol>);
|
|
|
|
#[cfg(feature = "NSConnection")]
|
|
#[deprecated = "Use NSXPCConnection instead"]
|
|
#[method_id(@__retain_semantics Other connectionForProxy)]
|
|
pub unsafe fn connectionForProxy(&self) -> Retained<NSConnection>;
|
|
}
|
|
);
|