Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When to use key-value coding to get values vs. accessors




On Nov 1, 2007, at 1:29 PM, Paul Bruneau wrote:

Not looking for an in-depth explanation (I should be able to find/ understand the docs once I get tipped in the right direction), but can someone briefly hint to me the reason Apple uses key-value coding in this example code:
http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/03_CustomClass/chapter_4_section_3.html


Because, for brevity, the tutorial didn't show the implementation of the custom accessors.

For current best practice, see <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdAccessorMethods.html >.

Feel free to file an enhancement request to ensure this is covered in an update to 10.5 for that tutorial.

mmalc

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >When to use key-value coding to get values vs. accessors (From: Paul Bruneau <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.