iphonecoredatarecipes

Looking for tutorials on iPhoneCoreDataRecipes App

I am finding it very difficult to grasp how the Views are loaded and wired with the TabBarController in the iPhoneCoreDataRecipes App. Does anyone have any pointers on how to learn the concepts presented in this Apple sample App? I have read the other items on Apple developer site. - (void)applicationDidFinishLaunching:(UIApplication *...

Managed Object Context in Tab Bar View

Ok. this one's a challenge. I have a tableview within a navigation controller. I push it from the root, where I have an add action that allows me to add a new record. That works fine. Now what I've tried to do is add this tableview to a tab bar view (without a tab bar controller cuz that won't work) but within the same navigation cont...

Objective-C: Hierarchical passing of CoreData in NavigationController

Hi guys, I need some guidance with this issue I have. I have a navigational Controller, with the root controller making use of CoreData and an NSFetchController. Now, the root controller works fine. When I click on an item, hierarchically it should display the next UITable associating the values for the row in the previous root controll...

Why does Core Data initialization fail when I attempt to do it at these points?

I see how to solve the problem but it bothers me that I don't understand why this doesn't work. I have a UIViewController subclass that uses Core Data, so it needs the NSManagedObjectContext. The controller is loaded from a nib file where it's placed under a navigation controller which is inside a tab controller. I tried doing this in i...

iPhone Core Data does not refresh table

Hi all, I'm trying to write an application with Core Data, and I have been able to successfully read and write to the core data database. However, if I write to the database in one view controller, my other view controllers will not see the change until the app is closed then reopened again. This is really frustrating. I'm not entirely ...

Create Managed Object Model From Existing XSD - iPhone Core Data

I have several existing XML schema files with a defined data model. I would now like to incorporate the exact data model in an iPhone app, using Core Data for persistence. Does anyone know if there is a way to create a Managed Object Model other than by using the graphical tool in Xcode? It would take me a long long time to have to go th...

NSPredicates with custom objects

Hi, I have the following problem and I cannot figure out how to solve it. I have an NSSet which contains Person objects (NSDictionary with 2 keys: name, age). From time to time I get an NSArray of Person objects and I want to add them to my NSSet but I want to filter out the duplicates. I'm thinking I could use NSPredicates but I am read...

I am getting the error Wrong type argument to unary minus and Expected ';' before ':' token

I am getting the error Wrong type argument to unary minus and Expected ';' before ':' token The error occurs at the - (NSIndexPath *).... line I am really New at this, so if there is anymore info needed, please ask, if you need to see the entire app, please e-mail me @ james at sevenotwo dot com. the app isn't really complicated. it is...

Apples Core Data iPhone Recipes Example Question

Why does Apples Core Data iPhone Recipes Example use a separate entity for called Image linked to the Recipe Entity via a one to one Relationship to store the recipes image. Why not just have an "image" attribute in the Recipe Entity? Many Thanks ...

How to Fetch Subquery Data from Core Data?

Using an NSPredicate, you can fetch only certain rows from Core Data using a subquery, e.g. SUBQUERY(records, $r, $r.length > 10).@count > 0. Is there a way to actually fetch the aggregated data from the subquery as a fetched property? ...