Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 9, 2007, 03:21 PM   #1
MacDonaldsd
macrumors 65816
 
MacDonaldsd's Avatar
 
Join Date: Sep 2005
Location: London , UK
Disadvantages of using Core Data

Is there any disadvantages of using Core Data for developing the main part of an application as opposed to doing it in obj-c?

Do you loose anything from doing this, as it looks a really nice way to do the bulk of an application I want to do
MacDonaldsd is offline   0 Reply With Quote
Old Jul 9, 2007, 04:57 PM   #2
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
The main disadvantage is it's different thinking. I am still figuring it all out, so I haven't done a lot of work with it. But if you have custom classes or you want to have custom classes, it makes you implement more code. Kind of like how Cocoa Bindings is easy for basic things and doesn't require extra code, but if you want to get fancy, it's more work working around bindings than just doing the glue code yourself. That is how I see Core Data. But since the system is doing the work for you, I'd say go for it. If you really think it's bad months down the road after developing in it for a while, you can switch out of it, but I doubt that will happen.
kainjow is offline   0 Reply With Quote
Old Jul 9, 2007, 05:34 PM   #3
Alloye
macrumors 6502a
 
Join Date: Apr 2007
Location: Rocklin, CA
I've used CoreData for a couple of projects and have found it to be quite nice. A couple of things to consider:

1. You have to change your thinking a bit. Just like Cocoa Bindings, a lot happens behind the scenes. It can become difficult to keep track of "what is happening where" and tricky to do things outside the boundaries of the framework. This is particularly true if you don't have a solid grasp of Cocoa in the first place.

2. Versioning in the Tiger implementation is somewhat difficult and pretty much left to the developer. That might not matter at this point because Leopard will address this shortcoming.

Beyond those two caveats, it's a great framework that can save you tons of time and many lines of code.
Alloye is offline   0 Reply With Quote
Old Jul 9, 2007, 06:08 PM   #4
MongoTheGeek
macrumors 68040
 
MongoTheGeek's Avatar
 
Join Date: Sep 2003
Location: Its not so much where you are as when you are.
Send a message via MSN to MongoTheGeek Send a message via Yahoo to MongoTheGeek
Quote:
Originally Posted by Alloye View Post
2. Versioning in the Tiger implementation is somewhat difficult and pretty much left to the developer. That might not matter at this point because Leopard will address this shortcoming.
It makes easy things REALLY easy but can get in the way if you want to do something fancy.

It also tends to tie down the running of the app to the computer.
__________________
The future ain't what it used to be.
MongoTheGeek is offline   0 Reply With Quote
Old Jul 9, 2007, 06:47 PM   #5
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
Quote:
Originally Posted by kainjow View Post
The main disadvantage is it's different thinking. I am still figuring it all out, so I haven't done a lot of work with it. But if you have custom classes or you want to have custom classes, it makes you implement more code.
I haven't run into any limitations yet for D&D Manager.

Quote:
Originally Posted by Alloye View Post
2. Versioning in the Tiger implementation is somewhat difficult and pretty much left to the developer. That might not matter at this point because Leopard will address this shortcoming.
Totally agree, changing the model seems to be a pain as well, so so far I haven't taken anything away.

If you use the XML store you can add properties without causing problems to old documents.
Eraserhead is offline   0 Reply With Quote
Old Jul 10, 2007, 06:40 AM   #6
MacDonaldsd
Thread Starter
macrumors 65816
 
MacDonaldsd's Avatar
 
Join Date: Sep 2005
Location: London , UK
Quote:
Originally Posted by Eraserhead View Post
I haven't run into any limitations yet for D&D Manager.
I don't play D&D myself but thats a nice little application you got there, did it take long to do ?

Is it easy to modify the data model once you have started ? e.g. forgetting an attribute.

also how about trivial things like adding color coding to a instance of an entity ?
MacDonaldsd is offline   0 Reply With Quote
Old Jul 10, 2007, 08:56 AM   #7
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
Quote:
Originally Posted by MacDonaldsd View Post
I don't play D&D myself but thats a nice little application you got there, did it take long to do ?
Thanks, it's difficult to quantify the time, really since November 2006, with other commitments (i.e. my Uni course) taking priority. Though I've never made anything like it before.

Quote:
Is it easy to modify the data model once you have started ? e.g. forgetting an attribute.
Yes, certainly if you use the XML store, I do it all the time, not so much with the binary store.

Quote:
also how about trivial things like adding color coding to a instance of an entity ?
I haven't tried, but I wouldn't have thought it would affect anything.
Eraserhead is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Core Data help. Ernie11 iPhone/iPad Programming 4 May 11, 2014 08:46 PM
Having an issue passing data between views with Core Data. iJustinCabral iPhone/iPad Programming 0 Jul 15, 2013 09:50 PM
Saving data from custom tablecells core data luke3 iPhone/iPad Programming 0 Jul 14, 2012 06:09 PM
Core Data Predicates nashyo iPhone/iPad Programming 0 Jul 11, 2012 12:09 PM
Trouble with Core Data luke3 iPhone/iPad Programming 1 Jul 5, 2012 11:58 PM

Forum Jump

All times are GMT -5. The time now is 08:15 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC