Skip to main content

NSFetchedResultsControllerDelegate

Trait NSFetchedResultsControllerDelegate 

Source
pub unsafe trait NSFetchedResultsControllerDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn controller_didChangeContentWithDifference(
        &self,
        controller: &NSFetchedResultsController,
        diff: &NSOrderedCollectionDifference<NSManagedObjectID>,
    )
       where Self: Sized + Message { ... }
    unsafe fn controller_didChangeObject_atIndexPath_forChangeType_newIndexPath(
        &self,
        controller: &NSFetchedResultsController,
        an_object: &AnyObject,
        index_path: Option<&NSIndexPath>,
        type: NSFetchedResultsChangeType,
        new_index_path: Option<&NSIndexPath>,
    )
       where Self: Sized + Message { ... }
    unsafe fn controller_didChangeSection_atIndex_forChangeType(
        &self,
        controller: &NSFetchedResultsController,
        section_info: &ProtocolObject<dyn NSFetchedResultsSectionInfo>,
        section_index: NSUInteger,
        type: NSFetchedResultsChangeType,
    )
       where Self: Sized + Message { ... }
    unsafe fn controllerWillChangeContent(
        &self,
        controller: &NSFetchedResultsController,
    )
       where Self: Sized + Message { ... }
    unsafe fn controllerDidChangeContent(
        &self,
        controller: &NSFetchedResultsController,
    )
       where Self: Sized + Message { ... }
    unsafe fn controller_sectionIndexTitleForSectionName(
        &self,
        controller: &NSFetchedResultsController,
        section_name: &NSString,
    ) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSFetchedResultsController only.
Expand description

Provided Methods§

Source

unsafe fn controller_didChangeContentWithDifference( &self, controller: &NSFetchedResultsController, diff: &NSOrderedCollectionDifference<NSManagedObjectID>, )
where Self: Sized + Message,

Available on crate features NSFetchRequest and NSManagedObjectID only.
§Safety

controller generic should be bound by NSFetchRequestResult.

Source

unsafe fn controller_didChangeObject_atIndexPath_forChangeType_newIndexPath( &self, controller: &NSFetchedResultsController, an_object: &AnyObject, index_path: Option<&NSIndexPath>, type: NSFetchedResultsChangeType, new_index_path: Option<&NSIndexPath>, )
where Self: Sized + Message,

Available on crate feature NSFetchRequest only.
§Safety
  • controller generic should be bound by NSFetchRequestResult.
  • an_object should be of the correct type.
Source

unsafe fn controller_didChangeSection_atIndex_forChangeType( &self, controller: &NSFetchedResultsController, section_info: &ProtocolObject<dyn NSFetchedResultsSectionInfo>, section_index: NSUInteger, type: NSFetchedResultsChangeType, )
where Self: Sized + Message,

Available on crate feature NSFetchRequest only.
§Safety

controller generic should be bound by NSFetchRequestResult.

Source

unsafe fn controllerWillChangeContent( &self, controller: &NSFetchedResultsController, )
where Self: Sized + Message,

Available on crate feature NSFetchRequest only.
§Safety

controller generic should be bound by NSFetchRequestResult.

Source

unsafe fn controllerDidChangeContent( &self, controller: &NSFetchedResultsController, )
where Self: Sized + Message,

Available on crate feature NSFetchRequest only.
§Safety

controller generic should be bound by NSFetchRequestResult.

Source

unsafe fn controller_sectionIndexTitleForSectionName( &self, controller: &NSFetchedResultsController, section_name: &NSString, ) -> Option<Retained<NSString>>
where Self: Sized + Message,

Available on crate feature NSFetchRequest only.
§Safety

controller generic should be bound by NSFetchRequestResult.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSFetchedResultsControllerDelegate

Source§

impl ProtocolType for dyn NSFetchedResultsControllerDelegate

Source§

const NAME: &'static str = "NSFetchedResultsControllerDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSFetchedResultsControllerDelegate for ProtocolObject<T>

Implementors§