Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > CoreData crashes XCode

CoreData crashes XCode
Thread Tools
Fresh-Faced Recruit
Join Date: Aug 2001
Location: Germany
Status: Offline
Reply With Quote
Apr 30, 2005, 05:21 PM
 
Hi,
just got Tiger and tried XCode 2.0. I'm very interested in Core Data and tried to start with a datamodel.

I can add Entities, but everytime I try to create a Relationship or Attribute XCode shows an error and (often crashes).

I get the following error:

Uncaught Exception:
[<XDPMRelationship 0x5722d10> valueForKey:]: lookup of unknown key: 'fetchRequest'.
This class does not have an instance variable of the name fetchRequest or _fetchRequest, nor a method of the name fetchRequest, _fetchRequest, getFetchRequest, or _getFetchRequest

What's wrong?

Mark
     
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
May 1, 2005, 06:12 PM
 
Haven't got my hands on Tiger yet, but that's very disappointing. I'm also very keen to start using CoreData ASAP, and was very disappointed in the lack of stability in the developer preview (could not do ANYTHING useful with data modelling at all).

Is sure hope they get a stable update out soon, as I've been planning a couple of things that really require CoreData.
     
Fresh-Faced Recruit
Join Date: Aug 2001
Location: Germany
Status: Offline
Reply With Quote
May 2, 2005, 02:49 PM
 
I've just deleted any file which could cause the crash:
- deinstalled XCode with the uninstaller from the tiger dvd
- deinstalled Webobjects trial
- deleted every configfile in /library, ../application support, /caches from XCode and Webobjects in the user and system directories
- deleted some Framework files in my user Library dir

And after a reboot and a clean install NOW EVERYTHING WORKS!!!
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
May 2, 2005, 03:43 PM
 
If you read the release notes, WebObjects 5.2.3 is not qualified to work with Xcode Tools 2.0. You shouldn't have installed it.
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
May 2, 2005, 03:46 PM
 
Core Data has been solid for me. In half an hour I created an application that replicated the functionality of my roommate's senior design project. He'd spent an entire semester on it. I spent 30 minutes and had nearly the same functionality. He had to use C# and Access and I used Core Data.
     
Addicted to MacNN
Join Date: May 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
May 4, 2005, 05:22 PM
 
Originally Posted by Thinine
Core Data has been solid for me. In half an hour I created an application that replicated the functionality of my roommate's senior design project. He'd spent an entire semester on it. I spent 30 minutes and had nearly the same functionality. He had to use C# and Access and I used Core Data.
Wow ... what was it that you are doing?

(I'm new to Mac development). C# and ADO.NET are very powerful for data work ... I'd love to know the project. I'm impressed to say the least.
- iMac 3.2Ghz 1TB - MacBook Pro 15" Core i7 2.3Ghz / 256SSD (Work laptop)
- PowerMac G5 - Dual 2.0 Ghz, 3GB, Soundsticks!,
- Lenovo Thinkpad T510 (also a work laptop), Win 7 Enterprise, 8GB, 320GB HDD
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
May 4, 2005, 11:28 PM
 
His project was to create an interface for the database of our county cemetery. He is able to add, delete, and search for records. Core Data gives you all of this functionality for free. Just option-drag your data model to interface builder and it will build an interface for you. Compile this app and you got a full fledged application that can take in data and saves it as an xml file (which was indexed by Spotlight, so it was searchable from the system). This is essentially all that I did. Make the data model, generate the interface, and I'm done. I wrote no code and I had never used Core Data before. There was some additional functionality (generation of payment invoices and perhaps a few other things) which I didn't implement.

Now whether this is a testament to his project's simplicity (and his groups inefficiency) or Core Data's power, I don't know.
     
Addicted to MacNN
Join Date: May 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
May 5, 2005, 07:42 AM
 
Thanks for the update.

I certainly couldn't have done it in C# with ADO.NET quite as fast as you did it, but it would'nt have taken me a semester either. Then again I've been coding Microsoft systems since they had their name on OS/2. <GRIN>

I really can't wait to get my sea-legs on XCode. I'm really excited about learning something new. (And I'm quickly becoming the enemy at work ... "Why are you learning to code on OSX?")
- iMac 3.2Ghz 1TB - MacBook Pro 15" Core i7 2.3Ghz / 256SSD (Work laptop)
- PowerMac G5 - Dual 2.0 Ghz, 3GB, Soundsticks!,
- Lenovo Thinkpad T510 (also a work laptop), Win 7 Enterprise, 8GB, 320GB HDD
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:28 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2