icrate 0.0.1

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct NSPortMessage;

    unsafe impl ClassType for NSPortMessage {
        type Super = NSObject;
    }
);

extern_methods!(
    unsafe impl NSPortMessage {
        #[method_id(@__retain_semantics Init initWithSendPort:receivePort:components:)]
        pub unsafe fn initWithSendPort_receivePort_components(
            this: Option<Allocated<Self>>,
            sendPort: Option<&NSPort>,
            replyPort: Option<&NSPort>,
            components: Option<&NSArray>,
        ) -> Id<Self, Shared>;

        #[method_id(@__retain_semantics Other components)]
        pub unsafe fn components(&self) -> Option<Id<NSArray, Shared>>;

        #[method_id(@__retain_semantics Other receivePort)]
        pub unsafe fn receivePort(&self) -> Option<Id<NSPort, Shared>>;

        #[method_id(@__retain_semantics Other sendPort)]
        pub unsafe fn sendPort(&self) -> Option<Id<NSPort, Shared>>;

        #[method(sendBeforeDate:)]
        pub unsafe fn sendBeforeDate(&self, date: &NSDate) -> bool;

        #[method(msgid)]
        pub unsafe fn msgid(&self) -> u32;

        #[method(setMsgid:)]
        pub unsafe fn setMsgid(&self, msgid: u32);
    }
);