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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to