objc2_class_kit/generated/
CLSObject.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// An object managed by ClassKit.
11    ///
12    /// See
13    /// `CLSContext`for more details.
14    ///
15    /// See also [Apple's documentation](https://developer.apple.com/documentation/classkit/clsobject?language=objc)
16    #[unsafe(super(NSObject))]
17    #[derive(Debug, PartialEq, Eq, Hash)]
18    pub struct CLSObject;
19);
20
21extern_conformance!(
22    unsafe impl NSCoding for CLSObject {}
23);
24
25extern_conformance!(
26    unsafe impl NSObjectProtocol for CLSObject {}
27);
28
29extern_conformance!(
30    unsafe impl NSSecureCoding for CLSObject {}
31);
32
33impl CLSObject {
34    extern_methods!(
35        /// The date this object was created.
36        #[unsafe(method(dateCreated))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn dateCreated(&self) -> Retained<NSDate>;
39
40        /// The date this object was last modified.
41        #[unsafe(method(dateLastModified))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn dateLastModified(&self) -> Retained<NSDate>;
44
45        #[unsafe(method(new))]
46        #[unsafe(method_family = new)]
47        pub unsafe fn new() -> Retained<Self>;
48
49        #[unsafe(method(init))]
50        #[unsafe(method_family = init)]
51        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
52    );
53}