• 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
Value Transformer Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Value Transformer Name


  • Subject: Value Transformer Name
  • From: Richard Somers <email@hidden>
  • Date: Fri, 10 Apr 2009 08:15:43 -0600

In an Xcode data model window, a transformable attribute has an input labeled "Value Transformer Name:".

The Core Data Programming Guide says "By default, Core Data uses the NSKeyedUnarchiveFromDataTransformerName transformer, however you can specify your own transformer if you want."

In my test application various values for the "Value Transformer Name:" in the data model window produce the following error warnings.

1. blank -[NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver cannot encode structs

2. NSKeyedUnarchiveFromDataTransformerName Warning: no NSValueTransformer with class name 'NSKeyedUnarchiveFromDataTransformerName' was found

3. NSKeyedUnarchiveFromData -[NSConcreteValue bytes]: unrecognized selector sent to instance

Questions

Why does number 2 not work when the documentation indicates that it should and is actually the default condition?

If number 3 is really the same as the default condition then why does it not produce the exact same results as number 1?

Why does the NSValueTransformer class have named transformers but those names can not be used in the Xcode data modeler or in Interface Builder without producing an error?

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


  • Follow-Ups:
    • Re: Value Transformer Name
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Change view on resize
  • Next by Date: Re: Setting Min, MAx and range of characters for NSTextField
  • Previous by thread: Re: substring (or) CDATA XML PARSING?!
  • Next by thread: Re: Value Transformer Name
  • Index(es):
    • Date
    • Thread