Please help because I think I'm going mad.
I have a core data collection that contains many thousand records.
Some of the fields in these records contain terms that have a single
quote. When building the database from XML, we created two fields - a
NAME field and a SORTFIELD field.
The NAME field contains the full term and is used...
I have a class that I need to use in both Core Data and non Core Data applications. In non Core Data applications I need the class to omit certain code at compile time. Are there any compiler directives that detect if Core Data framework is added to the Xcode project, something like #ifdef __COREDATA?
...
Hello,
I'm using NSFetchedResultsController and I have a problem to query count in parent attribute.
Assuming that following data model, 'Group', 'Category', 'Item'.
- Item : All items belong to ‘Category’
- Category : ‘Category’ may belong to a certain ‘Group’
- Group : 'Group' has zero to N 'Category'
And I want to search all items ...
I've got a list of contacts, each having several emails.
Should I create a Contact Core Data entity and a Email entity and link several email objects to one contact object? Or should I do it another way e.g concatenate all the emails and store them as one big string?
What's the cleanest and most efficient way to deal with such a config...
Hello,
I have a NSManagedObject with a NSMutableArray as attribute:
@interface MyObject : NSManagedObject
{
}
@property (nonatomic, retain) id a1;
In the data model it is declared as Transformable. I left the Value Transformer field like it is with the default (in light grey) NSKeyedUnarchiveFromData.
a1 is created as part of th...
I have a database design that's normalized well enough, but now I need to add a new table (entity, since I'm actually using Core Data) and I'm running into some issues.
Landscape has many Assessment
Assessment has one AssessmentType
AssessmentTree has one Assessment
AssessmentTree has one each of 12 other entities, omitted for space.
...
if (win) {
// Game was won, set completed in puzzle and time
// Calculate seconds taken
int timeTaken = (int)([NSDate timeIntervalSinceReferenceDate] - self.gameStartTime);
int bestTime = [[self.puzzle valueForKey:@"bestTime"] intValue];
if (timeTaken < bestTime && bestTime != 0) {
[self.puzzle setValue:[N...
Hello. I'm diving into iOS development and I have a few questions about manipulating a simple Core Data object that I created in Xcode. After using the object editor, here's the class that Xcode generated for me...
@interface Alarm : NSManagedObject
{
}
@property (nonatomic, retain) NSNumber * Enabled;
@property (nonatomic, retain...
My Core Data model looks like this:
The players relationship of the entity Game is a to many relationship and will hold all the player objects related to that Game entity.
I have a UITableView that looks like this <-- link .
The Table View displays all the games, how would I, when selecting a Game show/push another UITableView to dis...
I want to develop a news App such as Engadge etc. The news had loaded from the server, and now I'll save the news included body text and pictures into database(Core Data). Can UIWebView read the datas from Core Data directly, and shows in UIWebview?
Thanks.
...
Hi geniuses out there,
I am well into building a Core Data tab-based iPad application. I am passing in my NSManagedObjectContext to my root view using the following in my app delegate class.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.rootViewController.man...
I'm working on a table view that will display all of a certain type of managed object, and I'm wondering if I should be doing something to prevent faults from firing all the time when the user scrolls and I set up a new cell in the data source?
I don't know too much detail about large amounts of managed objects, (several hundred) but I ...
I noticed that by default the sample app GLPaint comes with a recorded data in binary and it loads up on start, it is what is used to display the "Shake me" text.
I'm creating a similar painting app and I was just wondering what is the best way to actually record these strokes and load them up next time.
Currently I tried saving the lo...
I am writing an iPad app that will be expandable with new items via in-app purchasing. For example, my current plan is to have a jpg pattern and a matching plist file with the parameters I need to expand that pattern into a full picture.
The user will select one jpg/png from a list of small thumbnails - the list is held in Core Data - ...
Hi guys,
I'm stuck on a problem for hours now and having read everything about this on stackoverflow (and apply every advices found), I'm now officially in need for help. ;o)
Here is the context :
In my iPhone project, I need to import data on the background and insert it in a managed object context. Following the advices found here, ...
In my iPhone app, I have an NSFetchedResultsController showing User objects in a UITableView. The User Objects have 0-many Log objects. A summary of the Log objects are shown together with their User object in the UITableView.
My app uses a tab bar, so user input in the logging tab require that the user tab's NSFetchedResultsController ...
I've been using @atebits's ABTableViewCell for a while. For those who are unfamiliar with it, basically it makes tableview scrolling much faster by drawing all the labels and images, instead of allocating UIKit objects (such as UILabels, UIImageView, etc).
Now, I have pretty big UITableViews and in each cell, there's a small (32x32) use...
I'd like to know if I should expect setFetchOffset to work in an NSFetchedResultsController.
Given a UITableView that displays rows like this from an NSFRC:
1
2
3
4
5
I expected that adding this line:
[fetchRequest setFetchOffset:1];
e.g. line 207 here:
http://github.com/mandersen/FetchOffsetCase/blob/master/Classes/RootViewControll...
I have a UITableView that I've set up by following Apple's various Core Data examples. Everything works fine with this view, however, the index on the right hand side only has letters for sections that are actually in the table. I'd like to have all the letters filled in, and if the user taps on a letter that doesn't have a section, take...
Original question has been answered. Update addresses related question raised in comments.
Original post:
I am using the MOC save method used in Apple's CoreDataBooks. However, I seem to have use for two layers of MOC merging (three MOCs where the 3rd merges with the 2nd and then the 2nd merges with 1st).
First, I have a tableview (Cl...