• 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
Re: Core Data Save As Binary Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Save As Binary Error


  • Subject: Re: Core Data Save As Binary Error
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 15 Dec 2009 15:34:49 +0000

It's probably unrelated, but why are you using NSArchiver? There's almost no need to these days, and it's more-or-less deprecated (not available on the iPhone for example).

On 14 Dec 2009, at 12:41, Richard Somers wrote:

> I have a Core Data document based application.
>
> Saving the file as XML or SQLite works fine.
>
> Saving as binary results in an error: *** -[NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver cannot encode structs.
>
> The struct in question is a transformable attribute using a custom value transformer.
>
>     - (id)transformedValue:(id)value
>     {
>          return [NSArchiver archivedDataWithRootObject:value];
>     }
>
> No where in my code do I call NSKeyedArchiver.
>
> Why does the core data framework work fine saving as XML or SQLite but not binary?
>
> --Richard
>
> _______________________________________________
>
> 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

_______________________________________________

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

  • Follow-Ups:
    • Re: Core Data Save As Binary Error
      • From: Richard Somers <email@hidden>
References: 
 >Core Data Save As Binary Error (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: memcpy with 64 bit
  • Next by Date: Localization.strings in UTF16 vs UTF8
  • Previous by thread: Re: Core Data Save As Binary Error
  • Next by thread: Re: Core Data Save As Binary Error
  • Index(es):
    • Date
    • Thread