Skip to content

Commit

Permalink
Fix compiler warnings with 5.0 SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
th-in-gs committed Oct 13, 2011
1 parent 09e1b3b commit 6fea514
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DTGridView Project/Classes/DTGridViewAppDelegate.m
Expand Up @@ -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;

Expand Down
Expand Up @@ -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]);

}

Expand Down
Expand Up @@ -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];
}
Expand Down
Expand Up @@ -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"];

Expand Down
5 changes: 3 additions & 2 deletions DTGridView Project/DTGridView.xcodeproj/project.pbxproj
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
};
Expand All @@ -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;
};
Expand Down

0 comments on commit 6fea514

Please sign in to comment.