• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data Based Application Bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Core Data Based Application Bug? (From: Colin Cornaby <email@hidden>)
 >Re: Core Data Based Application Bug? (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Using C++ AutoPtr within an Obj C file.
  • Next by Date: Re: Menus in a document based application
  • Previous by thread: Re: Core Data Based Application Bug?
  • Next by thread: Subclassing cells?
  • Index(es):
    • Date
    • Thread