use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[deprecated = "Building Garbage Collected apps is no longer supported."]
pub struct NSGarbageCollector;
unsafe impl ClassType for NSGarbageCollector {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for NSGarbageCollector {}
extern_methods!(
unsafe impl NSGarbageCollector {
#[deprecated = "Building Garbage Collected apps is no longer supported."]
#[method_id(@__retain_semantics Other defaultCollector)]
pub unsafe fn defaultCollector() -> Retained<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>);
#[cfg(feature = "NSZone")]
#[deprecated = "Building Garbage Collected apps is no longer supported."]
#[method(zone)]
pub unsafe fn zone(&self) -> NonNull<NSZone>;
}
);
extern_methods!(
unsafe impl NSGarbageCollector {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);