Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #15 from th-in-gs/master

Just small compiler warning fixes for latest SDK.  Should still be 3.x+ compatible.
  • Loading branch information...
commit 925662ff650d1c000a06239435c921990a1da85b 2 parents 09e1b3b + 6fea514
Daniel Tull authored
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;
};
Please sign in to comment.
Something went wrong with that request. Please try again.