objc2_core_data/generated/
NSManagedObjectModelReference.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    /// [Apple's documentation](https://developer.apple.com/documentation/coredata/nsmanagedobjectmodelreference?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct NSManagedObjectModelReference;
14);
15
16unsafe impl NSObjectProtocol for NSManagedObjectModelReference {}
17
18impl NSManagedObjectModelReference {
19    extern_methods!(
20        #[cfg(feature = "NSManagedObjectModel")]
21        #[unsafe(method(resolvedModel))]
22        #[unsafe(method_family = none)]
23        pub unsafe fn resolvedModel(&self) -> Retained<NSManagedObjectModel>;
24
25        #[unsafe(method(versionChecksum))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn versionChecksum(&self) -> Retained<NSString>;
28
29        #[unsafe(method(init))]
30        #[unsafe(method_family = init)]
31        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
32
33        #[cfg(feature = "NSManagedObjectModel")]
34        #[unsafe(method(initWithModel:versionChecksum:))]
35        #[unsafe(method_family = init)]
36        pub unsafe fn initWithModel_versionChecksum(
37            this: Allocated<Self>,
38            model: &NSManagedObjectModel,
39            version_checksum: &NSString,
40        ) -> Retained<Self>;
41
42        #[unsafe(method(initWithFileURL:versionChecksum:))]
43        #[unsafe(method_family = init)]
44        pub unsafe fn initWithFileURL_versionChecksum(
45            this: Allocated<Self>,
46            file_url: &NSURL,
47            version_checksum: &NSString,
48        ) -> Retained<Self>;
49
50        #[unsafe(method(initWithEntityVersionHashes:inBundle:versionChecksum:))]
51        #[unsafe(method_family = init)]
52        pub unsafe fn initWithEntityVersionHashes_inBundle_versionChecksum(
53            this: Allocated<Self>,
54            version_hash: &NSDictionary,
55            bundle: Option<&NSBundle>,
56            version_checksum: &NSString,
57        ) -> Retained<Self>;
58
59        #[unsafe(method(initWithName:inBundle:versionChecksum:))]
60        #[unsafe(method_family = init)]
61        pub unsafe fn initWithName_inBundle_versionChecksum(
62            this: Allocated<Self>,
63            model_name: &NSString,
64            bundle: Option<&NSBundle>,
65            version_checksum: &NSString,
66        ) -> Retained<Self>;
67    );
68}
69
70/// Methods declared on superclass `NSObject`.
71impl NSManagedObjectModelReference {
72    extern_methods!(
73        #[unsafe(method(new))]
74        #[unsafe(method_family = new)]
75        pub unsafe fn new() -> Retained<Self>;
76    );
77}