nsfetchedresultscontroller Questions

2

It is the first time for me working with AppKit and a NSTableView. It is backed by a NSFetchedResultsController for Core Data. When there are changes to the dataset, a Notification is being sent: f...
Tbar asked 15/6, 2022 at 15:48

1

I run into performance issues with the diffable data source when having a larger data set, around 22,000 items. I am surprised that applying the snapshot takes so much time when animation is ON. Se...

4

Solved

I have a more or less basic UITableViewController with a NSFetchedResultsController. The UITableViewController is pushed onto the navigationController's stack. But the push animation isn't smooth b...

7

Glitch I am using CoreData with a NSFetchResultController to have data displayed in a UITableView. I have one problem: the UITableView changes the contentOffSet.y when a new row is inserted/moved/d...

5

Solved

- (void)fetchResult { NSFetchRequest *request = [[NSFetchRequest alloc] init]; NSSortDescriptor *sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"Project" ascending:YES]; [request set...

2

CoreData: error: (NSFetchedResultsController) The fetched object at index 72 has an out of order section name 'อั. Objects must be sorted by section name' I am using the following code to sort ...
Odont asked 29/4, 2014 at 10:34

4

Solved

Let's say I have two entities, Employee and Department. A department has a to-many relationship with an employee, many employees can be in each department but each employee only belongs to one depa...
Suspicion asked 23/9, 2011 at 19:27

3

Solved

When dealing with CoreData, NSFetchedResultsController and Diffable Data Source, I always notice that I need to apply DispatchQueue.main.async. For instance, Before applying DispatchQueue.main.asyn...

2

I actively use StackOverflow almost daily for more than a year by now, but this is the first question I'm asking here. No other question grasp my exact problem. Solution to close ones doesn't work ...
Disconcerted asked 11/8, 2016 at 15:0

2

I'm using a UICollectionViewDiffableDataSource and a NSFetchedResultsController to populate my UICollectionView inside my UIViewController. To add the ability of reordering cells I added a UILong...

3

Solved

I'm having an issue getting accurate updates from an NSFetchedResultsControllerDelegate after using an NSBatchDeleteRequest, the changes come through as an update type and not the delete type on th...
Alleenallegation asked 13/11, 2016 at 15:11

7

Solved

I have a entity Person with a property personId (personId is unique) How can I fetch the Person with the max personId? (I want to fetch the person itself not the value of the property)
Substitution asked 1/5, 2012 at 13:4

9

Solved

I have a Core Data model with an NSDate property. I want to filter the database by day. I assume the solution will involve an NSPredicate, but I'm not sure how to put it all together. I know how t...

1

Back in objective-c, I could fetch a sectioned list of objects from Core Data using something like this: self.fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:f...
Salted asked 28/3, 2020 at 19:57

2

Solved

I encountered an NSObjectInaccessibleException that I can not understand: *** Terminating app due to uncaught exception 'NSObjectInaccessibleException', reason: 'CoreData could not fulfill a faul...
Collie asked 5/1, 2014 at 18:35

2

I started to receive warning (below) on iOS13. I have noticed that this warning pops up because UITableView's window is null (another tab is selected, pushed detailed view controller on table selec...
Schleicher asked 27/9, 2019 at 7:49

4

I am currently trying to setup a NSFetchedResultsController that will order my table view based on the number of entities in a to-many relationship. I am not sure if this makes a difference when co...
Tellurate asked 10/10, 2010 at 3:10

1

Solved

I'm seeing a situation where a NSFetchRequest returns a different number of objects depending on whether it's executed directly through the NSManagedObjectContext or as part of building a NSFetched...
Siam asked 10/1, 2020 at 16:26

1

Solved

Xcode 11.0 Swift 5.1 I'm working on a "simple" app using Core Data. The single Core Data entity is named Topic and comprises Title (String), Details (String) and isFavorite (Bool) I'm using a c...
Hexylresorcinol asked 27/9, 2019 at 0:32

2

Solved

I am using a fairly standard setup of NSTableView + CoreData + NSFetchedResultsController, with the relevant view controller being NSFetchedResultsControllerDelegate to receive the changes. Here ar...

1

Solved

I have an entity called “Event“ which has s start and end date properties. I have to show the list of events by grouping them by date in UI. I am using NSFetchedResultsController to fetch and list ...

3

Solved

How can I get number of objects in section of an NSFetchedResultcController in Swift? if let s = self.fetchedResultsController?.sections as? NSFetchedResultsSectionInfo { } is giving me Canno...
Danieu asked 21/9, 2014 at 2:44

5

Solved

During swype deleting (most importatnt lines of this method): - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath...
Pennywise asked 23/1, 2012 at 16:11

4

Solved

I'm writing an app with two tables on one screen. The left table is a list of folders and the right table shows a list of files. When tapped on a row on the left, the right table will display the f...

4

In my application, I have a NSFetchedResultsController to load Core Data objects in a UITableView. The fetch request associated with this FRC uses the new viewContext property available for the NSP...

© 2022 - 2024 — McMap. All rights reserved.