• 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 transformer direction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core data transformer direction


  • Subject: Core data transformer direction
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 2 Jul 2008 22:15:33 -0700

The core data programming guide say this about transformable attributes:

... Core Data uses an instance of NSValueTransformer to convert the attribute to and from an instance of NSData. Core Data then stores the data instance to the persistent store. By default, Core Data uses the NSKeyedUnarchiveFromDataTransformerName transformer, however you can specify your own transformer if you want.

... If you specify a custom transformer, it must transform an instance of the non-standard data type into an instance of NSData and support reverse transformation.

The first paragraph (and the description of NSKeyedUnarchiveFromDataTransformerName) says that the forward transformation is NSData->SomeClass.


The second paragraph says that the forward transformation is SomeClass- >NSData.

Anyone know which is the correct answer?

_______________________________________________

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 transformer direction
      • From: mmalc crawford <email@hidden>
    • Re: Core data transformer direction
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: How to converting a Carbon nib to Cocoa?
  • Next by Date: [ANN] FileView framework available
  • Previous by thread: Re: Contextual menu in Finder
  • Next by thread: Re: Core data transformer direction
  • Index(es):
    • Date
    • Thread