On Dec 15, 2009, at 9:18 PM, Graham Cox wrote:

You're archiving 'value'. You want instead to return the mutableData that the first archiver wrote to, which is otherwise unused.

Thanks. Saving keyed archive of struct foo now works for xml store (I think, when I open up the xml document I was expecting to see the keys for foo but instead just see data as before).

Prior to this change document saved ok in xml and sqlite but save as binary resulted in error: *** -[NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver cannot encode structs.

With this change saving to xml is ok but saving as sqlite or binary results in error: The document could not be saved as "document".foo is a required value.

My whole application works fine with core data, bindings, saving to different store types, etc. Just this one attribute is causing problems.

Any ideas?

--Richard

_______________________________________________

Cocoa-dev mailing list ([email protected])

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