Hi,
how would you go about saving a state in a tableview-drilldown, when using core data? So next time you start the app, the drill down level you where at when you exit the app will be loaded in.
I looked at apples drilldownsave sample code, but couldn't figure our how to change to code to work with core data.
Any help would be ve...
Hello,
I have a entity in my core datamodell, "Tours". Tours has a attribute called "creationDate". In my iphone up, I want the tours to be seen in an table view, ordered by creationDate. This works fine. But now I want to go into master/detail. That is, I want to see in the master table view all Year/Month combinations from my tours en...
Hello,
I want to save user generated data in an XML file in the iphone. While we have NSXMLParser to parse through any xml from a url, do we have any method to create a xml file which can be stored in the app documents directory, so that i can use the parser to read the file and then display the contents back in the app.
Or using Core ...
I have two types of objections: locations and history items.
I'm trying to fetch locations which are attached to any history item, so my fetch predicate for the location is "history.@count > 0", which works fine.
I'd also like to sort the location objects with an NSSortDescriptor by the date of their latest history item, which as far as...
Hello guys,
I have a CoreData based iPhone application, which is shipped with some basic data which are updated from the Internet. My problem is that the changes I make in the values of the Entity are not populated in the table view.
This is my updating procedure:
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSEntityDescrip...
Why is [NSFetchedResultsController performFetch:] crashing when recreating an NSFetchedResultsController with an equivalent NSFetchRequest?
I have an app that has a table view controller of threads (message threads). When you tap a thread it loads another table view controller that uses an NSFetchedResultsController to get all the messa...
I'm facing some sort of memory related issue I cannot figure out.
In a summary view, I'm creating a tableview populated by an array (sectionArray) which in turn is loaded from a core data repository. This array of NSManaged objects is used to assign values to a custom UITableViewCell which has two labels: title and description.
When ...
Good Morning,
Im hoping someone can help me with an issue im having with updating a tableview via the insertRowsAtIndexPaths: method.
I am calling a resource on the internet and creating entities based on the data i receive, for each entity I create and populate, I immediately save the entity to the managed object context. I can see e...
How would I create a core-data application that syncs with a MySQL database?
Should I implement a SQL-Lite layer and try to sync with MySQL that way?
Or would running web services be better? I want to take advantage of Core Data modeling though.
Is there any way to use Linq? I love linq.
...
In my iPhone app I provide users with a view of industry news items. I get this list as an xml file from my server. Parsing and inserting the xml data into my Core Data repository is a no brainer, but there are a few cases where I might get duplicate news item entries.
I thought a good solution would be to insert all the updates when I ...
Hello! I have a Core Data model setup like so:
Blockbuster Entity
To-Many relationship to DVD entities.
DVD Entity
title attribute (string)
To-One relationship to a parent Blockbuster entity
A single Blockbuster can have multiple DVD's inside of it (To-Many). Each DVD can only be part of a single Blockbuster (To-One).
There ar...
Hi,
I´ve created an utility Application which is nearly complete, but now I´m on a point were I really have to persist Data.
Since XCode provides only Core Data Templates in an Navigation or Window Based App, is there an easy way to add Core Data to my Application? I´ve never worked with Core Data and just have to persist messages with ...
I'm facing some sort of memory related issue I cannot figure out.
I have one summary view that lists some settings and a detail view where you can edit each setting.
In the summary view I have a tableview populated by an array (settingArray) of settings which in turn is loaded from a core data repository.
// SettingsViewController.h...
I've got a mac application that I've developed.
I use it to create sqlite files that are bundled with my iphone app. The mac app uses Core Data and bindings and is working fine except for one "weird" issue.
I use an NSImageView (or Image Well) to allow me to drag and drop jpg files.
This is bound through to an optional binary attribu...
By design, Core Data does not issue a VACUUM SQL command to its SQLite database(s), as detailed here. I'm creating a Core Data application that'll store, and later delete, large binary files (2-10MB in size) in a SQLite db. Over time this will lead to fragmentation and a larger-than-necessary SQLite database. I'd like to periodically ...
Hi, I've got a medium sized project (about 20 critical classes) where I'm using sqlite for my data store. All of my objects and data structures comply with the NSCoding protocol. I've been reading up on all the great bells and whistles Core Data has to offer and would like to migrate my app to use Core Data.
The bells and whistles i'm...
I'm creating an SQLite file on the Mac using Core Data and then placing it in my iPhone app (GitHub project if curious). I want to release an update to the app with with an updated SQLite file. The model will be the same entities and attributes, there will just be more data.
I run the app in simulator with the old sqlite file. Exit. Rep...
I am wondering how I could delete an object depending on it's title for the CoreData 'name' property I have.
To Add an Object I use this code:
NSManagedObjectContext *moc = [self managedObjectContext];
JGManagedObject *theParent =
[NSEntityDescription insertNewObjectForEntityForName:@"projects"
in...
I've built a simple iPhone app that parses data from a remote XML feed, converts the information into objects (they're videos), and displays the videos in a standard table view->detail view->"Play Video" UI. There are hundreds of videos, each with about ten attributes. (The videos are never downloaded, only streamed, using MPMoviePlayerC...
I'm currently thinking about the modeling of data in an iPhone app. My first instinct is to try to normalize the data into entities.
For example a Professor entity might look something ilke this:
@interface Professor : NSManagedObject {
}
@property (nonatomic, retain) NSString * profID;
@property (nonatomic, retain) NSString * firs...