14
14
namespace MonoMac.CoreData
16
16
[BaseType (typeof (NSPersistentStore))]
17
// Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: NSMappedObjectStore must be initialized with initWithPersistentStoreCoordinator:configurationName:URL:options
17
19
public interface NSAtomicStore {
19
21
[Export ("initWithPersistentStoreCoordinator:configurationName:URL:options:")]
20
IntPtr Constructor (NSPersistentStoreCoordinator coordinator, string configurationName, NSUrl url, NSDictionary options);
22
IntPtr Constructor (NSPersistentStoreCoordinator coordinator, string configurationName, NSUrl url, [NullAllowed] NSDictionary options);
23
25
bool Load (out NSError error);
291
292
[Export ("propertiesToGroupBy")]
292
293
NSPropertyDescription [] PropertiesToGroupBy { get; set; }
296
[BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" })]
297
interface NSFetchedResultsController {
299
[Export ("initWithFetchRequest:managedObjectContext:sectionNameKeyPath:cacheName:")]
300
IntPtr Constructor (NSFetchRequest fetchRequest, NSManagedObjectContext context, [NullAllowed] string sectionNameKeyPath, [NullAllowed] string name);
302
[Wrap ("WeakDelegate")]
303
NSFetchedResultsControllerDelegate Delegate { get; set; }
305
[Export ("delegate", ArgumentSemantic.Assign)][NullAllowed]
306
NSObject WeakDelegate { get; set; }
308
[Export ("cacheName")]
309
string CacheName { get; }
311
[Export ("fetchedObjects")]
312
NSObject[] FetchedObjects { get; }
314
[Export ("fetchRequest")]
315
NSFetchRequest FetchRequest { get; }
317
[Export ("managedObjectContext")]
318
NSManagedObjectContext ManagedObjectContext { get; }
320
[Export ("sectionNameKeyPath")]
321
string SectionNameKeyPath { get; }
323
[Export ("sections")]
324
NSFetchedResultsSectionInfo[] Sections { get; }
326
[Export ("performFetch:")]
327
bool PerformFetch (out NSError error);
329
[Export ("indexPathForObject:")]
330
NSIndexPath FromObject (NSObject obj);
332
[Export ("objectAtIndexPath:")]
333
NSObject ObjectAt (NSIndexPath path);
335
[Export ("sectionForSectionIndexTitle:atIndex:")]
336
// name like UITableViewSource's similar (and linked) selector
337
int SectionFor (string title, int atIndex);
339
[Export ("sectionIndexTitleForSectionName:")]
340
// again named like UITableViewSource
341
string SectionIndexTitles (string sectionName);
344
[Export ("deleteCacheWithName:")]
345
void DeleteCache ([NullAllowed] string name);
348
[BaseType (typeof (NSObject))]
351
interface NSFetchedResultsControllerDelegate {
352
[Export ("controllerWillChangeContent:")]
353
void WillChangeContent (NSFetchedResultsController controller);
355
[Export ("controller:didChangeObject:atIndexPath:forChangeType:newIndexPath:")]
356
void DidChangeObject (NSFetchedResultsController controller, NSObject anObject, NSIndexPath indexPath, NSFetchedResultsChangeType type, NSIndexPath newIndexPath);
358
[Export ("controller:didChangeSection:atIndex:forChangeType:")]
359
void DidChangeSection (NSFetchedResultsController controller, NSFetchedResultsSectionInfo sectionInfo, uint sectionIndex, NSFetchedResultsChangeType type);
361
[Export ("controllerDidChangeContent:")]
362
void DidChangeContent (NSFetchedResultsController controller);
364
[Export ("controller:sectionIndexTitleForSectionName:")]
365
string SectionFor (NSFetchedResultsController controller, string sectionName);
368
[BaseType (typeof (NSObject))]
371
interface NSFetchedResultsSectionInfo {
372
[Export ("numberOfObjects")]
376
NSObject[] Objects { get; }
381
[Export ("indexTitle")]
382
string IndexTitle { get; }
296
386
[BaseType (typeof (NSPersistentStore))]
297
387
interface NSIncrementalStore {
868
962
[Export ("tryLock")]
869
963
bool TryLock { get; }
871
966
[Obsolete("Deprecated in MAC OSX 10.5 and later")]
872
967
[Static, Export ("metadataForPersistentStoreWithURL:error:")]
873
968
NSDictionary MetadataForPersistentStoreWithUrl (NSUrl url, out NSError error);
875
970
[Field ("NSSQLiteStoreType")]
876
971
NSString SQLiteStoreType { get; }
878
973
[Field ("NSXMLStoreType")]
879
974
NSString XMLStoreType { get; }
881
976
[Field ("NSBinaryStoreType")]
882
977
NSString BinaryStoreType { get; }