mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Whitespace syntax cleanup. Refs #614
This commit is contained in:
committed by
Blake Watters
parent
7cbccfd322
commit
82f4630d36
@@ -50,7 +50,7 @@
|
||||
|
||||
- (void)reachabilityChanged:(NSNotification *)notification
|
||||
{
|
||||
RKReachabilityObserver *observer = (RKReachabilityObserver *) [notification object];
|
||||
RKReachabilityObserver *observer = (RKReachabilityObserver *)[notification object];
|
||||
|
||||
RKLogCritical(@"Received reachability update: %@", observer);
|
||||
_flagsLabel.text = [NSString stringWithFormat:@"Host: %@ -> %@", observer.host, [observer reachabilityFlagsDescription]];
|
||||
|
||||
@@ -151,13 +151,13 @@
|
||||
}
|
||||
|
||||
if (indexPath.section == 0) {
|
||||
Project *project = (Project *) [_objects objectAtIndex:indexPath.row];
|
||||
Project *project = (Project *)[_objects objectAtIndex:indexPath.row];
|
||||
cell.accessoryType = UITableViewCellAccessoryNone;
|
||||
cell.textLabel.text = project.name;
|
||||
} else if (indexPath.section == 1) {
|
||||
// NOTE: We refetch the object here because Project is not Core Data backed
|
||||
NSManagedObject *objectReference = [_selectedProject.tasks objectAtIndex:indexPath.row];
|
||||
Task *task = (Task *) [[RKObjectManager sharedManager].objectStore objectWithID:[objectReference objectID]];
|
||||
Task *task = (Task *)[[RKObjectManager sharedManager].objectStore objectWithID:[objectReference objectID]];
|
||||
cell.textLabel.text = [NSString stringWithFormat:@"%@", task.name];
|
||||
cell.detailTextLabel.text = [NSString stringWithFormat:@"Assigned to: %@", task.assignedUser.name];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user