use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CoreData_NSFetchedPropertyDescription")]
pub struct NSFetchedPropertyDescription;
#[cfg(feature = "CoreData_NSFetchedPropertyDescription")]
unsafe impl ClassType for NSFetchedPropertyDescription {
#[inherits(NSObject)]
type Super = NSPropertyDescription;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CoreData_NSFetchedPropertyDescription")]
unsafe impl NSCoding for NSFetchedPropertyDescription {}
#[cfg(feature = "CoreData_NSFetchedPropertyDescription")]
unsafe impl NSCopying for NSFetchedPropertyDescription {}
#[cfg(feature = "CoreData_NSFetchedPropertyDescription")]
unsafe impl NSObjectProtocol for NSFetchedPropertyDescription {}
extern_methods!(
#[cfg(feature = "CoreData_NSFetchedPropertyDescription")]
unsafe impl NSFetchedPropertyDescription {
#[cfg(feature = "CoreData_NSFetchRequest")]
#[method_id(@__retain_semantics Other fetchRequest)]
pub unsafe fn fetchRequest(&self) -> Option<Id<NSFetchRequest>>;
#[cfg(feature = "CoreData_NSFetchRequest")]
#[method(setFetchRequest:)]
pub unsafe fn setFetchRequest(&self, fetch_request: Option<&NSFetchRequest>);
}
);
extern_methods!(
#[cfg(feature = "CoreData_NSFetchedPropertyDescription")]
unsafe impl NSFetchedPropertyDescription {
#[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>;
}
);