diff --git a/Mac Example/Classes/Controllers/NearbySpotsController.m b/Mac Example/Classes/Controllers/NearbySpotsController.m index 11dc74a..fa83e2f 100644 --- a/Mac Example/Classes/Controllers/NearbySpotsController.m +++ b/Mac Example/Classes/Controllers/NearbySpotsController.m @@ -103,8 +103,7 @@ if (!image) { NSURLRequest *imageRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:spot.imageURLString]]; AFImageRequestOperation *operation = [AFImageRequestOperation imageRequestOperationWithRequest:imageRequest success:^(NSImage *image) { - - [tableView reloadDataForRowIndexes:[NSIndexSet indexSetWithIndex:row] columnIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, 2)]]; + [tableView reloadDataForRowIndexes:[NSIndexSet indexSetWithIndex:row] columnIndexes:[NSIndexSet indexSetWithIndex:0]]; }]; [self.imageOperationQueue addOperation:operation]; diff --git a/Mac Example/Classes/Models/Spot.m b/Mac Example/Classes/Models/Spot.m index e93e70a..ae7c577 100644 --- a/Mac Example/Classes/Models/Spot.m +++ b/Mac Example/Classes/Models/Spot.m @@ -49,9 +49,7 @@ return [[CLLocation alloc] initWithLatitude:[self.latitude doubleValue] longitude:[self.longitude doubleValue]]; } -+ (void)spotsWithURLString:(NSString *)urlString near:(CLLocation *)location parameters:(NSDictionary *)parameters block:(void (^)(NSArray *records))block { - - NSLog(@"GET"); ++ (void)spotsWithURLString:(NSString *)urlString near:(CLLocation *)location parameters:(NSDictionary *)parameters block:(void (^)(NSArray *records))block { NSDictionary *mutableParameters = [NSMutableDictionary dictionaryWithDictionary:parameters]; if (location) { [mutableParameters setValue:[NSString stringWithFormat:@"%1.7f", location.coordinate.latitude] forKey:@"lat"]; diff --git a/Mac Example/en.lproj/MainMenu.xib b/Mac Example/en.lproj/MainMenu.xib index d99439d..956ae7a 100644 --- a/Mac Example/en.lproj/MainMenu.xib +++ b/Mac Example/en.lproj/MainMenu.xib @@ -1364,9 +1364,9 @@ YES - 129.5078125 - 100 - 130 + 70 + 70 + 70 75628096 2048 @@ -1393,6 +1393,10 @@ 67239424 33554432 + + NSImage + placeholder-stamp + LucidaGrande 13 @@ -1543,7 +1547,7 @@ NSFontManager - + NearbySpotsController @@ -2233,7 +2237,7 @@ tableView - + 550 @@ -2242,7 +2246,7 @@ dataSource - + 551 @@ -2250,7 +2254,7 @@ delegate - + 552 @@ -3362,7 +3366,7 @@ 549 - + @@ -3844,11 +3848,13 @@ YES NSMenuCheckmark NSMenuMixedState + placeholder-stamp YES {9, 8} {7, 2} + {50, 50}