Browse files

Fix compiler warnings with 5.0 SDK.

  • Loading branch information...
1 parent 09e1b3b commit 6fea514e2fb23568b2aa2e0f80b51032f0ab3880 @th-in-gs committed Oct 13, 2011
View
2 DTGridView Project/Classes/DTGridViewAppDelegate.m
@@ -64,7 +64,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
if (!cell)
- cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"cell"] autorelease];
+ cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"] autorelease];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
View
2 DTGridView Project/Classes/DTGridViewExampleDataSourceAndDelegate.m
@@ -159,7 +159,7 @@ - (DTGridViewCell *)gridView:(DTGridView *)gv viewForRow:(NSInteger)rowIndex col
#pragma mark DTGridViewDelegate methods
- (void)gridView:(DTGridView *)gv selectionMadeAtRow:(NSInteger)rowIndex column:(NSInteger)columnIndex {
- NSLog(@"%@:%s %@", self, _cmd, [gv cellForRow:rowIndex column:columnIndex]);
+ NSLog(@"%@:%@ %@", self, NSStringFromSelector(_cmd), [gv cellForRow:rowIndex column:columnIndex]);
}
View
2 DTGridView Project/Classes/DTInfiniteGridViewExampleViewController.m
@@ -85,7 +85,7 @@ - (DTGridViewCell *)gridView:(DTGridView *)gv viewForRow:(NSInteger)rowIndex col
else if (columnIndex == 3)
view.backgroundColor = [UIColor yellowColor];
else
- NSLog(@"%@:%s FAIL: %i", self, _cmd, columnIndex);
+ NSLog(@"%@:%@ FAIL: %i", self, NSStringFromSelector(_cmd), columnIndex);
return [view autorelease];
}
View
2 DTGridView Project/Classes/DTSnapGridViewExampleViewController.m
@@ -60,7 +60,7 @@ - (CGFloat)gridView:(DTGridView *)gv widthForCellAtRow:(NSInteger)rowIndex colum
- (DTGridViewCell *)gridView:(DTGridView *)gv viewForRow:(NSInteger)rowIndex column:(NSInteger)columnIndex {
- NSLog(@"%@:%s", self, _cmd);
+ NSLog(@"%@:%@", self, NSStringFromSelector(_cmd));
DTGridViewCell *cell = [gv dequeueReusableCellWithIdentifier:@"cell"];
View
5 DTGridView Project/DTGridView.xcodeproj/project.pbxproj
@@ -229,6 +229,9 @@
/* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0420;
+ };
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "DTGridView" */;
compatibilityVersion = "Xcode 3.1";
developmentRegion = English;
@@ -320,7 +323,6 @@
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- PREBINDING = NO;
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
SDKROOT = iphoneos3.2;
};
@@ -334,7 +336,6 @@
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- PREBINDING = NO;
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
SDKROOT = iphoneos;
};

0 comments on commit 6fea514

Please sign in to comment.