Is Core Data relevant for my app (another user asks...)?
Is Core Data relevant for my app (another user asks...)?
- Subject: Is Core Data relevant for my app (another user asks...)?
- From: Keith Blount <email@hidden>
- Date: Thu, 20 Apr 2006 16:00:22 -0700 (PDT)
Hi,
This is something that has been bugging me for a
while, and inspired by another user's question along
the same lines
(http://www.cocoabuilder.com/archive/message/cocoa/2006/4/20/161567),
I thought I would ask advice here.
My application currently does not use Core Data, and I
am wondering whether I should look into moving over to
it (my app is Tiger-only anyway). However, I am not
sure if Core Data will provide me with what I need,
both because of the way my model works and because I
use a file wrapper as my file format. On the other
hand, the free undo and redo really appeals to me, as
that is a massive pain for me at the moment. My
program has the following specifications:
It is basically a project-manager for writers, a
little like Xcode in operation but with word
processing capabilities. My current model comprises a
custom class which holds various attributes of each
text document (title, synopsis, status, modified date
etc). This would be fine for CD, except that instances
of this model class are arranged in a tree in an
outline view, and for this purpose my model has a
number of utility methods that help with things like
drag and drop (for instance, methods that check
whether the receiver is a descendant of another
object). My model has to be amenable to
NSOutlineView's data source methods (because
NSTreeController is not yet capable of all I need).
Each of these objects represents a text file. These
objects are archived in an array to disk inside a file
wrapper which also contains all of the text files.
(That way, the user's text is always safe even if the
file gets corrupted, but it still all looks like one
file to the user.) The program is also responsible for
editing and saving these text files using the usual
text methods.
In other words, I would need Core Data to handle my
tree of objects whilst saving the Core Data file
inside a file wrapper that could also hold all related
text files. I also need my model to handle all the
utility methods I currently have.
Does this sound like something that could be handled
by Core Data fairly straightforwardly? Or am I better
off sticking with what I've got and handling undo
myself? It looks like a *lot* of work to get my head
around Core Data, so I want to know whether it will be
worth the effort at this point before I dive in.
Many thanks for any advice,
Keith
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden