objc2_app_kit/generated/
NSNibConnector.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsnibconnector?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct NSNibConnector;
15);
16
17unsafe impl NSCoding for NSNibConnector {}
18
19unsafe impl NSObjectProtocol for NSNibConnector {}
20
21impl NSNibConnector {
22    extern_methods!(
23        #[unsafe(method(source))]
24        #[unsafe(method_family = none)]
25        pub unsafe fn source(&self) -> Option<Retained<AnyObject>>;
26
27        /// This is a [weak property][objc2::topics::weak_property].
28        /// Setter for [`source`][Self::source].
29        #[unsafe(method(setSource:))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn setSource(&self, source: Option<&AnyObject>);
32
33        #[unsafe(method(destination))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn destination(&self) -> Option<Retained<AnyObject>>;
36
37        /// This is a [weak property][objc2::topics::weak_property].
38        /// Setter for [`destination`][Self::destination].
39        #[unsafe(method(setDestination:))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn setDestination(&self, destination: Option<&AnyObject>);
42
43        #[unsafe(method(label))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn label(&self) -> Retained<NSString>;
46
47        /// Setter for [`label`][Self::label].
48        #[unsafe(method(setLabel:))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn setLabel(&self, label: &NSString);
51
52        #[unsafe(method(replaceObject:withObject:))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn replaceObject_withObject(
55            &self,
56            old_object: &AnyObject,
57            new_object: &AnyObject,
58        );
59
60        #[unsafe(method(establishConnection))]
61        #[unsafe(method_family = none)]
62        pub unsafe fn establishConnection(&self);
63    );
64}
65
66/// Methods declared on superclass `NSObject`.
67impl NSNibConnector {
68    extern_methods!(
69        #[unsafe(method(init))]
70        #[unsafe(method_family = init)]
71        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
72
73        #[unsafe(method(new))]
74        #[unsafe(method_family = new)]
75        pub unsafe fn new() -> Retained<Self>;
76    );
77}