• 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: Kyle Sluder <email@hidden>
  • Date: Sun, 12 Feb 2012 00:28:47 -0800

On Sat, Feb 11, 2012 at 11:40 PM, Richard Somers <email@hidden> wrote:
> Karoly Lorentey has a blog entry "Efficient Scalar Attributes in Core Data" for iOS. I was trying to follow his lead except target Mac OS X v10.6 using a struct instead of a single scalar but it has been rough going.
>
>     http://blog.lorentey.hu/2010/10/31/core-data-scalars/

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"): https://developer.apple.com/library/mac/#releasenotes/Cocoa/FoundationOlder.html#//apple_ref/doc/uid/TP40008080

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

--Kyle Sluder

_______________________________________________

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: Richard Somers <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>)

  • 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