objc2-class-kit 0.3.2

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

use crate::*;

extern_class!(
    /// An object managed by ClassKit.
    ///
    /// See
    /// `CLSContext`for more details.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/classkit/clsobject?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct CLSObject;
);

extern_conformance!(
    unsafe impl NSCoding for CLSObject {}
);

extern_conformance!(
    unsafe impl NSObjectProtocol for CLSObject {}
);

extern_conformance!(
    unsafe impl NSSecureCoding for CLSObject {}
);

impl CLSObject {
    extern_methods!(
        /// The date this object was created.
        #[unsafe(method(dateCreated))]
        #[unsafe(method_family = none)]
        pub unsafe fn dateCreated(&self) -> Retained<NSDate>;

        /// The date this object was last modified.
        #[unsafe(method(dateLastModified))]
        #[unsafe(method_family = none)]
        pub unsafe fn dateLastModified(&self) -> Retained<NSDate>;

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

        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    );
}