• 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
Core data issue with transient and binary data properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core data issue with transient and binary data properties


  • Subject: Core data issue with transient and binary data properties
  • From: Barry Wilson <email@hidden>
  • Date: Sun, 25 Jun 2006 11:13:10 -0700

Greetings,

I made a recent change to my application where I implemented accessors for a NSRect following the code as outlined in the core data programming guide.

I have two properties, one transient "myRect" and another "myRectAsDaa" coded exactly as the example code with the rect being converted into an NSValue and archived into NSData in the set accessor.

The first time I launched my application after making these changes (not yet storing anything into the property) I noticed a message upon freeing my document that essentially said "unable to set nil value for myRect". Now I didn't understand why core data wanted to set a transient value to nil but I knew how to fix that and added code fin setNilValueForKey to handle it. Now freeing the document gives me a failure and message that NSKeyedArchiver cannot encode a struct.

So what is going on here? Should core data be setting this property to nil in the first place? And is there a problem with archiving [NSValue valueWithRect:myRect] ?

-Barry



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: cascading spotlight importer
  • Next by Date: archiving a predicate
  • Previous by thread: Re: cascading spotlight importer
  • Next by thread: archiving a predicate
  • Index(es):
    • Date
    • Thread