Declared in NSEntityDescription+RKAdditions.h
NSEntityDescription+RKAdditions.m

Overview

Provides extensions to NSEntityDescription for various common tasks.

Tasks

Properties

primaryKeyAttribute

The name of the attribute that acts as the primary key for the receiver.

@property (nonatomic, retain) NSString *primaryKeyAttribute

Discussion

The primary key attribute can be configured in two ways:

1. From within the Xcode Core Data editing view by

adding the desired attribute’s name as the value for the key primaryKeyAttribute to the user info dictionary.

1. Programmatically, by retrieving the NSEntityDescription instance and

setting the property’s value.

Programmatically configured values take precedence over the user info dictionary.

Declared In

NSEntityDescription+RKAdditions.h