//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsnibcontrolconnector?language=objc)
    #[unsafe(super(NSNibConnector, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "NSNibConnector")]
    pub struct NSNibControlConnector;
);

#[cfg(feature = "NSNibConnector")]
extern_conformance!(
    unsafe impl NSCoding for NSNibControlConnector {}
);

#[cfg(feature = "NSNibConnector")]
extern_conformance!(
    unsafe impl NSObjectProtocol for NSNibControlConnector {}
);

#[cfg(feature = "NSNibConnector")]
impl NSNibControlConnector {
    extern_methods!(
        #[unsafe(method(establishConnection))]
        #[unsafe(method_family = none)]
        pub fn establishConnection(&self);
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(feature = "NSNibConnector")]
impl NSNibControlConnector {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub fn new() -> Retained<Self>;
    );
}

#[cfg(feature = "NSNibConnector")]
impl DefaultRetained for NSNibControlConnector {
    #[inline]
    fn default_retained() -> Retained<Self> {
        Self::new()
    }
}
