Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix compiler warnings with 5.0 SDK.

  • Loading branch information...
commit 6fea514e2fb23568b2aa2e0f80b51032f0ab3880 1 parent 09e1b3b
James Montgomerie authored
2  DTGridView Project/Classes/DTGridViewAppDelegate.m
@@ -64,7 +64,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
64 64 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
65 65
66 66 if (!cell)
67   - cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"cell"] autorelease];
  67 + cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"] autorelease];
68 68
69 69 cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
70 70
2  DTGridView Project/Classes/DTGridViewExampleDataSourceAndDelegate.m
@@ -159,7 +159,7 @@ - (DTGridViewCell *)gridView:(DTGridView *)gv viewForRow:(NSInteger)rowIndex col
159 159 #pragma mark DTGridViewDelegate methods
160 160
161 161 - (void)gridView:(DTGridView *)gv selectionMadeAtRow:(NSInteger)rowIndex column:(NSInteger)columnIndex {
162   - NSLog(@"%@:%s %@", self, _cmd, [gv cellForRow:rowIndex column:columnIndex]);
  162 + NSLog(@"%@:%@ %@", self, NSStringFromSelector(_cmd), [gv cellForRow:rowIndex column:columnIndex]);
163 163
164 164 }
165 165
2  DTGridView Project/Classes/DTInfiniteGridViewExampleViewController.m
@@ -85,7 +85,7 @@ - (DTGridViewCell *)gridView:(DTGridView *)gv viewForRow:(NSInteger)rowIndex col
85 85 else if (columnIndex == 3)
86 86 view.backgroundColor = [UIColor yellowColor];
87 87 else
88   - NSLog(@"%@:%s FAIL: %i", self, _cmd, columnIndex);
  88 + NSLog(@"%@:%@ FAIL: %i", self, NSStringFromSelector(_cmd), columnIndex);
89 89
90 90 return [view autorelease];
91 91 }
2  DTGridView Project/Classes/DTSnapGridViewExampleViewController.m
@@ -60,7 +60,7 @@ - (CGFloat)gridView:(DTGridView *)gv widthForCellAtRow:(NSInteger)rowIndex colum
60 60
61 61 - (DTGridViewCell *)gridView:(DTGridView *)gv viewForRow:(NSInteger)rowIndex column:(NSInteger)columnIndex {
62 62
63   - NSLog(@"%@:%s", self, _cmd);
  63 + NSLog(@"%@:%@", self, NSStringFromSelector(_cmd));
64 64
65 65 DTGridViewCell *cell = [gv dequeueReusableCellWithIdentifier:@"cell"];
66 66
5 DTGridView Project/DTGridView.xcodeproj/project.pbxproj
@@ -229,6 +229,9 @@
229 229 /* Begin PBXProject section */
230 230 29B97313FDCFA39411CA2CEA /* Project object */ = {
231 231 isa = PBXProject;
  232 + attributes = {
  233 + LastUpgradeCheck = 0420;
  234 + };
232 235 buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "DTGridView" */;
233 236 compatibilityVersion = "Xcode 3.1";
234 237 developmentRegion = English;
@@ -320,7 +323,6 @@
320 323 GCC_C_LANGUAGE_STANDARD = c99;
321 324 GCC_WARN_ABOUT_RETURN_TYPE = YES;
322 325 GCC_WARN_UNUSED_VARIABLE = YES;
323   - PREBINDING = NO;
324 326 "PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
325 327 SDKROOT = iphoneos3.2;
326 328 };
@@ -334,7 +336,6 @@
334 336 GCC_C_LANGUAGE_STANDARD = c99;
335 337 GCC_WARN_ABOUT_RETURN_TYPE = YES;
336 338 GCC_WARN_UNUSED_VARIABLE = YES;
337   - PREBINDING = NO;
338 339 "PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
339 340 SDKROOT = iphoneos;
340 341 };

0 comments on commit 6fea514

Please sign in to comment.
Something went wrong with that request. Please try again.