mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-29 05:05:34 +08:00
Drop GG prefix in examples in header
This commit is contained in:
@@ -71,8 +71,8 @@
|
|||||||
NSString *airportID;
|
NSString *airportID;
|
||||||
if (match) {
|
if (match) {
|
||||||
airportID = [argsDict objectForKey:@"airport_id"];
|
airportID = [argsDict objectForKey:@"airport_id"];
|
||||||
NSFetchRequest *fetchRequest = [NSFetchRequest fetchRequestWithEntityName:@"GGTerminal"];
|
NSFetchRequest *fetchRequest = [NSFetchRequest fetchRequestWithEntityName:@"Terminal"];
|
||||||
NSEntityDescription *entity = [NSEntityDescription entityForName:@"GGAirport" inManagedObjectContext:managedObjectStore.persistentStoreManagedObjectContext];
|
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Airport" inManagedObjectContext:managedObjectStore.persistentStoreManagedObjectContext];
|
||||||
fetchRequest.predicate = [entity predicateForPrimaryKeyAttributeWithValue:airportID];
|
fetchRequest.predicate = [entity predicateForPrimaryKeyAttributeWithValue:airportID];
|
||||||
fetchRequest.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES]];
|
fetchRequest.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES]];
|
||||||
return fetchRequest;
|
return fetchRequest;
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
|
|
||||||
In more concrete terms, given the URL `http://restkit.org/airports/1234/terminals.json` the block would return an `NSFetchRequest` equal to:
|
In more concrete terms, given the URL `http://restkit.org/airports/1234/terminals.json` the block would return an `NSFetchRequest` equal to:
|
||||||
|
|
||||||
NSFetchRequest *fetchRequest = [NSFetchRequest fetchRequestWithEntityName:@"GGTerminal"];
|
NSFetchRequest *fetchRequest = [NSFetchRequest fetchRequestWithEntityName:@"Terminal"];
|
||||||
fetchRequest.predicate = [NSPredicate predicateWithFormat:@"airportID = 1234"];
|
fetchRequest.predicate = [NSPredicate predicateWithFormat:@"airportID = 1234"];
|
||||||
fetchRequest.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES]];
|
fetchRequest.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES]];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user