Re: Core Data Based Application Bug?
Re: Core Data Based Application Bug?
- Subject: Re: Core Data Based Application Bug?
- From: Colin Cornaby <email@hidden>
- Date: Fri, 5 Aug 2005 11:59:35 -0700
I'm adding abstraction to data addition and retrieval. Subclassing
NSManagedObjectContext seems to give the best of both worlds. I have
a clean Cocoa API to enforce data formatting and make life easier,
while I can use CoreData methods on the same object, allowing me to
run predicates and other cool stuff easily. It's mostly to reduce
some code headache, and make it backwards compatible with other
applications that are using a non CoreData version of the class. It's
not exactly necessary, but it doesn't do any harm either.
On Aug 5, 2005, at 8:02 AM, Chris Hanson wrote:
On Aug 4, 2005, at 10:37 PM, Colin Cornaby wrote:
//Initialize the theme for the document. A TKTheme is a
NSManagedObjectContext subclass
//so we can directly interface to CoreData. We can also
set the TKTheme as this persistent
//document's object context.
I'm curious, why are you subclassing NSManagedObjectContext?
-- Chris
---------------------------
Colin Cornaby - http://gomac.blogspot.com/
Carpe Stellarem - Lead Programmer, ProToys - http://carpestellarem.com
Macintosh Specialist - University of Portland - htttp://up.edu
_______________________________________________
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