• 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
Core Data and NSOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data and NSOperation


  • Subject: Core Data and NSOperation
  • From: Daniel Thorpe <email@hidden>
  • Date: Fri, 28 Mar 2008 19:09:42 +0000

Hello everyone, I'm a bit of a Core Data newbie, so any thoughts on this would be much appreciated...

I have some objects, where each performs calculations, so I've subclassed NSOperation so that I can configure their dependencies and execute them on an NSOperationQueue.

I want to store the objects using Core Data, but have come up with a possible problem. I've not used Core Data before, so I may have understood this incorrectly, but the entities must be subclasses of NSManagedObject, which NSOperation is not. So... how can I use Core Data to manage the fetching and storing of the data, but NSOperation to handle the computation?

I've thought that I could maybe use my NSOperation based class as a delegate of some NSManagedObject based class, which the Core Data entity is based on. Is that possible? Or is there a better way? Does Objective-C support multiple inheritance... I don't think it does....

Thanks in advance!

Cheers
Dan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Core Data and NSOperation
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Cant get Garbage Collection to work
  • Next by Date: re: Core Data faulting and bindings: recursive KVO notifications?
  • Previous by thread: Re: How to ^set^ preferred localizations?
  • Next by thread: Re: Core Data and NSOperation
  • Index(es):
    • Date
    • Thread