FCReadObject Crash
mrtristan opened this issue · comments
getting crashes on of FastCoder.m:512
[object setValue:FCReadObject(offset, input, total, cache) forKey:key];
Terminating app due to uncaught exception 'NSUnknownKeyException', reason:
'[<Message 0xa8b2010> setValue:forUndefinedKey:]: this class is not key value
coding-compliant for the key fontSize.'
I do in fact have class Message
(that extends BaseModel
) with an int
property called fontSize
.
could the issue be that it's a primitive type?
I don't know if these are related actually. FastCoding does support primitive types, so it shouldn't be that either. Can you send me your project, or even just the Message class? You can use
support at charcoaldesign dot co dot uk.
sent
I tried saving and instance of the class you sent me using FastCoding and it seemed to work OK.
The save method is only used for saving singleton model instances. Is your Message object a singleton? Or are you saving it in some other way?
so the Message class isn't specifically saved. I have other classes that also extend my ServerObject class that have instances of Message within them. I use those 'parent' classes as singletons and save them.
Sorry, I suppose I should have mentioned that.
Poke - I can't move forward with fixing this without a demo project.