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: 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