Skip to Content
Pro Android C++ with the NDK
book

Pro Android C++ with the NDK

by Onur Cinar
December 2012
Intermediate to advanced content levelIntermediate to advanced
416 pages
15h
English
Apress
Content preview from Pro Android C++ with the NDK

Chapter    6

Custom Managed Objects

At the moment, the Hero entity is represented by instances of the class NSManagedObject. Thanks to key-value coding, you have the ability to create entire data models without ever having to create a class specifically designed just to hold your application’s data.

There are some drawbacks to this approach, however. For one thing, when using key-value coding with managed objects, you use NSString constants to represent your attributes in code, but these constants are not checked in any way by the compiler. If you mistype the name of an attribute, the compiler won’t catch it. It can also be a little tedious having to use valueForKey: and setValue:forKey: all over the place instead of just using properties and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Android NDK Beginner`s Guide - Second Edition

Android NDK Beginner`s Guide - Second Edition

Sylvain Ratabouil
Learning Embedded Android N Programming

Learning Embedded Android N Programming

Ivan Morgillo, Stefano Viola
Learning Android

Learning Android

Marko Gargenta

Publisher Resources

ISBN: 9781430248279Purchase book