Re: Make Custom Struct Key-Value Coding Compliant
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