In the Performance Considerations section, Core Data caching and in-memory caching was discussed in addition to the timeout settings for these caching mechanisms and where to configure them. These approaches to caching can be configured for your needs or can serve as an example of how caching could be done in the native iOS environment.

A further customization that can be done when using Core Data is that custom validation code can be added to the *+Additions.m files. CRS-IUA demonstrates one example of this in the ATGKeyValuePair+Additions.m file, where the validateForInsert method is defined:

- (BOOL)validateForInsert:(NSError **)error

Please refer to the relevant Apple Core Data documentation for more information about this type of custom validation.

See: http://developer.apple.com/library/ios/#documentation/cocoa/Conceptual/CoreData/cdProgrammingGuide.html


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices