objc2_app_kit/generated/
NSNibConnector.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct NSNibConnector;
15);
16
17extern_conformance!(
18 unsafe impl NSCoding for NSNibConnector {}
19);
20
21extern_conformance!(
22 unsafe impl NSObjectProtocol for NSNibConnector {}
23);
24
25impl NSNibConnector {
26 extern_methods!(
27 #[unsafe(method(source))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn source(&self) -> Option<Retained<AnyObject>>;
30
31 #[unsafe(method(setSource:))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn setSource(&self, source: Option<&AnyObject>);
36
37 #[unsafe(method(destination))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn destination(&self) -> Option<Retained<AnyObject>>;
40
41 #[unsafe(method(setDestination:))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn setDestination(&self, destination: Option<&AnyObject>);
46
47 #[unsafe(method(label))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn label(&self) -> Retained<NSString>;
50
51 #[unsafe(method(setLabel:))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn setLabel(&self, label: &NSString);
55
56 #[unsafe(method(replaceObject:withObject:))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn replaceObject_withObject(
59 &self,
60 old_object: &AnyObject,
61 new_object: &AnyObject,
62 );
63
64 #[unsafe(method(establishConnection))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn establishConnection(&self);
67 );
68}
69
70impl NSNibConnector {
72 extern_methods!(
73 #[unsafe(method(init))]
74 #[unsafe(method_family = init)]
75 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
76
77 #[unsafe(method(new))]
78 #[unsafe(method_family = new)]
79 pub unsafe fn new() -> Retained<Self>;
80 );
81}