• 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: Make Custom Struct Key-Value Coding Compliant
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make Custom Struct Key-Value Coding Compliant


  • Subject: Re: Make Custom Struct Key-Value Coding Compliant
  • From: Richard Somers <email@hidden>
  • Date: Sun, 12 Feb 2012 02:04:09 -0700

On Feb 12, 2012, at 1:28 AM, Kyle Sluder wrote:

> Hmm. The Foundation Release Notes for 10.5 indicate that KVC supports arbitrary structs (see section titled "Support for Arbitrary Types in KVC and KVO")

Yes I have read that several times. It seems to be at odds with the Core Data documentation. It is very confusing.

I have not been able to get custom structs to work properly with Core Data. So for now I would agree with the Core Data documentation that they are somehow not KVC compliant.

> But the blog you linked to indicates that manually-implemented accessors aren't exactly the most efficient.

If you read all the way to the bottom of the blog, he was able to substantially improve the results with manually-implemented scalar accessors.

Another confusing thing is that Xcode 4.2 has a new undocumented checkbox called "Use scalar properties" in the class generation sheet. But this only works with iOS 5 and Mac OS X 10.7.

     http://subjectiveobserver.wordpress.com/

--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: Make Custom Struct Key-Value Coding Compliant
      • From: Ben Kennedy <email@hidden>
    • Re: Make Custom Struct Key-Value Coding Compliant
      • From: Joar Wingfors <email@hidden>
References: 
 >Make Custom Struct Key-Value Coding Compliant (From: Richard Somers <email@hidden>)
 >Re: Make Custom Struct Key-Value Coding Compliant (From: Graham Cox <email@hidden>)
 >Re: Make Custom Struct Key-Value Coding Compliant (From: Richard Somers <email@hidden>)
 >Re: Make Custom Struct Key-Value Coding Compliant (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Make Custom Struct Key-Value Coding Compliant
  • Next by Date: Re: Make Custom Struct Key-Value Coding Compliant
  • Previous by thread: Re: Make Custom Struct Key-Value Coding Compliant
  • Next by thread: Re: Make Custom Struct Key-Value Coding Compliant
  • Index(es):
    • Date
    • Thread