• 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
Loading mechanism with NSAtomicStore
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loading mechanism with NSAtomicStore


  • Subject: Loading mechanism with NSAtomicStore
  • From: "Alexander Lamb (dev)" <email@hidden>
  • Date: Fri, 26 Sep 2008 11:46:34 +0200

Hello List,

As I understand, when using NSAtomicStore, there is only a "load" method to load the data. It looks like it is an "all or nothing" operation.
However, if I want to load data from a server through some kind of HTTP/XML/Whatever method and only receive a subset of data. How would I implement this? For example, I want to retrieve a list of patients from a hospital system. Obviously, I am not going to load all the patients of the hospital!


Now, I can imagine having some king of global variable read by the "load" method I implement to load only the list of patients I need. But then, how is the faulting handled? A patient will refer to a list of medications, a list of visits, etc... My load method, again, can't deeply fetch all the objects potentially needed because I would end up with all the objects in memory. So I suspect, if a fault is triggered on an object in memory and the object is not (yet) in the local cache, I need my NSAtomicStore (subclass) to be notified to read from my distant store (HTTP/XML...) the missing object(s).
Is this possible currently?


Any thoughts or solutions for this problem are welcome!

Thanks,

Alexander

_______________________________________________

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


  • Prev by Date: [NSCFNumber intValue]: unrecognized selector
  • Next by Date: Re: Converting from Carbon Event Manager to NSTimer
  • Previous by thread: Re: [NSCFNumber intValue]: unrecognized selector
  • Next by thread: NSNotificationCenter
  • Index(es):
    • Date
    • Thread