I know these errors are very app-specific and almost always due to over-releasing an object. I just can't spot it and the debugging tips I have read haven't done the trick for me yet.
According to this debugging advice, my "offending object" was allocated in this code block (located in AddClass.m):
- (void)tableView:(UITableView *)tab...
Before I begin looking into this myself, I wanted to check if anyone had leads on projects that already integrate CoreData into the three20 MVC model.
I didn't find anything when I looked online so just throwing this out there too.
...
Hi friends,
I have used core data in my apps. My application works fine in online and offline mode . I have doubt about, how to write a query in Core data(Similar SQLite). I wrote a query and used in SQLite. But i want to know about, how to write a query(select, insert, update, etc,.) using core data. Please guide me and give me some us...
I have noticed that a problem in my app is caused because the Datasource methods of the UITableView are called before viewDidLoad.
The problem is that the UITableView doesn't have the correct amount of rows, it gets the amount of rows from the NSFetchedResultsController but the performFetch "function" for that is called in the viewDidLo...
I am using mogenerator.I am getting CoreData error as follows:
Failed to call designated initializer
on NSManagedObject class 'ClassName'.
Anybody please help me to solve this error.
...
Hi I have a simple database app on the iPhone that uses core data. I was just looking at some Flurry exception reports and I'm seeing the following error:
NSInternalInconsistencyException: no section at index 4
The number varies in the reports, but it is always the same message. Any idea on what this means and where to start my debuggi...
I have had a customer contact me about a bug in my application which I believe is related to my use of Core Data. This is currently only a theory as I have not be able to re-create the issue myself.
The problem appears to be if the user creates a new entity object and then edits the entity object straight away it does not seem to persis...
Are there any good samples of using a SearchDisplayController with a Core Data backed tableview? None of the Apple samples I see use Core Data, NSFetchedResultController or NSPredicates.
...
I have 3 entities. Folder, Feed & FeedItem
I need to fetch Folders which have feeds and feeds which have unread FeedItems
NSPredicate * predicate = [NSPredicate predicateWithFormat:@" feeds.@count > 0 AND feeds.feedItems.unread == 0 "];
I get this error
'NSInvalidArgumentException', reason: 'to-many key not allowed here'
How do I c...
In the Implementation Overview section of the NSPersistentDocument Core Data Tutorial it says:
…
One issue with creating the new top-level object in the nib file is that when you use bindings an object retains other objects to which it is bound. This means that bindings must be broken to ensure there are no retain cycles when a ...
Ok here goes my situation:
I have a core-data generated class Quantity which has one of its attributes 'Value', marked as a float.
There's a convenience method in the Quantity class which helps me set this property:
- (void)setValueValue:(float)value_ {
[self setValue:[NSNumber numberWithFloat:value_]];
}
Now when I set try se...
My app has a UISearchBar allowing user to enter search keywords. Each keystroke executes a Core Data query in order to display the results as text in search bar changes.
The problem is that search bar keystrokes are lagging pretty bad... surely because of slow fetching. Any ideas how to improve the performance?
My Core Data is backed w...
Hello,
I've found no clear answer so far, but maybe I've searched the wrong way.
My Question is, can Core Data to be used as a Persitence Storage for a Server Project? Where are Core Data's Limits, how much Data can be handled with Core Data and SQLite? SQLite should handle a lot of Data very well according to their website. I know of a...
Using Core Data. Let's say we have models for Team and Player.
Assume:
-Each player is a member of a single team
-Relevant relationships have been made in a xcdatamodel file.
I have a TeamListViewController (listing all teams), when I select a team I want to see a list of just those players related to that selected team on the PlayerLi...
What I am trying to do is improve on the "A Sheet for Creating a New Employee" example from the NSPersistentDocument Core Data Tutorial. One feature that I want to add is conditionally enabling the "Create" button only when the new object being edited by the sheet is actually valid for insertion.
The problem is, how do you handle the ed...
I've implemented a small proof-of-concept app using Core Data to accept some object attribute values from the user via text fields and it's all working great thanks to information found here and in the iPhone Core Data Recipes app. But I'm at the point where I need to display object validation errors to the user and I can't find a recom...
I have to store a custom class object to Coredata. The problem is my custom class contains structs,enum etc.I tried following method.
-(void)encodeWithCoder:(NSCoder *)encoder .
But am getting this error
[NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver cannot encode structs'
What is the best practice to store this ...
I'm using an NSFetchedResultsController in a standard way to update a UITableView whenever something changes in the related core-data entities. I'm doing the same as described in the Apple documentation.
The problem I have is when I make a mass insert of new core-data entities. This causes the NSFetchedResultsController delegate to al...
I have a UITableView that displays a subset of a large number of entities named "Documents". The subset is defined by another entity "Selection". Selections are named, ordered list of documents.
It Works fine, except when I want to change the displayed selection at run time. I get only a blank list.
Basically, I need to change the pred...
I have a core data model with blog groups, blogs, and posts. A blog group has a to-many relationship to blogs, and each blog has a to-many relationship to posts. A post has an attribute "hasBeenRead." Both the blog and the blog group have a attributes "numberUnreadPosts."
I'd like to know the best practice for propagating the numbe...