icrate 0.1.2

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::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "AppKit_NSMovie")]
    #[deprecated]
    pub struct NSMovie;

    #[cfg(feature = "AppKit_NSMovie")]
    unsafe impl ClassType for NSMovie {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "AppKit_NSMovie")]
unsafe impl NSCoding for NSMovie {}

#[cfg(feature = "AppKit_NSMovie")]
unsafe impl NSObjectProtocol for NSMovie {}

extern_methods!(
    #[cfg(feature = "AppKit_NSMovie")]
    unsafe impl NSMovie {
        #[cfg(feature = "Foundation_NSCoder")]
        #[method_id(@__retain_semantics Init initWithCoder:)]
        pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Option<Id<Self>>;

        #[deprecated = "As of macOS 10.15 this method always returns nil."]
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Option<Id<Self>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "AppKit_NSMovie")]
    unsafe impl NSMovie {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);