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::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Foundation_NSGarbageCollector")]
    #[deprecated = "Building Garbage Collected apps is no longer supported."]
    pub struct NSGarbageCollector;

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

#[cfg(feature = "Foundation_NSGarbageCollector")]
unsafe impl NSObjectProtocol for NSGarbageCollector {}

extern_methods!(
    #[cfg(feature = "Foundation_NSGarbageCollector")]
    unsafe impl NSGarbageCollector {
        #[deprecated = "Building Garbage Collected apps is no longer supported."]
        #[method_id(@__retain_semantics Other defaultCollector)]
        pub unsafe fn defaultCollector() -> Id<AnyObject>;

        #[deprecated]
        #[method(isCollecting)]
        pub unsafe fn isCollecting(&self) -> bool;

        #[deprecated = "Building Garbage Collected apps is no longer supported."]
        #[method(disable)]
        pub unsafe fn disable(&self);

        #[deprecated = "Building Garbage Collected apps is no longer supported."]
        #[method(enable)]
        pub unsafe fn enable(&self);

        #[deprecated = "Building Garbage Collected apps is no longer supported."]
        #[method(isEnabled)]
        pub unsafe fn isEnabled(&self) -> bool;

        #[deprecated = "Building Garbage Collected apps is no longer supported."]
        #[method(collectIfNeeded)]
        pub unsafe fn collectIfNeeded(&self);

        #[deprecated = "Building Garbage Collected apps is no longer supported."]
        #[method(collectExhaustively)]
        pub unsafe fn collectExhaustively(&self);

        #[deprecated = "Building Garbage Collected apps is no longer supported."]
        #[method(disableCollectorForPointer:)]
        pub unsafe fn disableCollectorForPointer(&self, ptr: NonNull<c_void>);

        #[deprecated = "Building Garbage Collected apps is no longer supported."]
        #[method(enableCollectorForPointer:)]
        pub unsafe fn enableCollectorForPointer(&self, ptr: NonNull<c_void>);

        #[deprecated = "Building Garbage Collected apps is no longer supported."]
        #[method(zone)]
        pub unsafe fn zone(&self) -> NonNull<NSZone>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Foundation_NSGarbageCollector")]
    unsafe impl NSGarbageCollector {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);