use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CoreData_NSIncrementalStoreNode")]
pub struct NSIncrementalStoreNode;
#[cfg(feature = "CoreData_NSIncrementalStoreNode")]
unsafe impl ClassType for NSIncrementalStoreNode {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CoreData_NSIncrementalStoreNode")]
unsafe impl NSObjectProtocol for NSIncrementalStoreNode {}
extern_methods!(
#[cfg(feature = "CoreData_NSIncrementalStoreNode")]
unsafe impl NSIncrementalStoreNode {
#[cfg(all(
feature = "CoreData_NSManagedObjectID",
feature = "Foundation_NSDictionary",
feature = "Foundation_NSString"
))]
#[method_id(@__retain_semantics Init initWithObjectID:withValues:version:)]
pub unsafe fn initWithObjectID_withValues_version(
this: Allocated<Self>,
object_id: &NSManagedObjectID,
values: &NSDictionary<NSString, AnyObject>,
version: u64,
) -> Id<Self>;
#[cfg(all(feature = "Foundation_NSDictionary", feature = "Foundation_NSString"))]
#[method(updateWithValues:version:)]
pub unsafe fn updateWithValues_version(
&self,
values: &NSDictionary<NSString, AnyObject>,
version: u64,
);
#[cfg(feature = "CoreData_NSManagedObjectID")]
#[method_id(@__retain_semantics Other objectID)]
pub unsafe fn objectID(&self) -> Id<NSManagedObjectID>;
#[method(version)]
pub unsafe fn version(&self) -> u64;
#[cfg(feature = "CoreData_NSPropertyDescription")]
#[method_id(@__retain_semantics Other valueForPropertyDescription:)]
pub unsafe fn valueForPropertyDescription(
&self,
prop: &NSPropertyDescription,
) -> Option<Id<AnyObject>>;
}
);
extern_methods!(
#[cfg(feature = "CoreData_NSIncrementalStoreNode")]
unsafe impl NSIncrementalStoreNode {
#[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>;
}
);