Closed trymbill closed 10 years ago
You may have already done this, but can you verify:
I may have dun goofed :) I was trying to fetch the object as a value, using valueForKey:
instead of objectForKey:
. I probably should've gone to sleep earlier yesterday :+1:
Confirming that this was my mistake, works fine when I try to fetch the object from the cache :)
It's happened to us all :)
I'm trying to save and return a cached (NSCache) subclassed PFObject called Transfer. When storing it (to debug this) I'm trying to fetch it from the cache right after to no avail, like this:
It saves the cache OK, and I can verify that PFObject+NSCoding is being used to serialize the object. But when I try to return it from the cache, I get this error:
Here's how the object looks like when it gets saved to the cache:
It doesn't seem to be firing
(id)initWithCoder:(NSCoder*)aDecoder
at all when fetching the object from the cache. It seems to be failing before it even reaches that method.Am I missing something here? Any clues as to why it isn't able to fetch the object from the cache?
PS. Thanks for an awesome pod!