Permalink
Browse files

Removing usage of deprecated method for selecting table indexes

  • Loading branch information...
1 parent a91db6c commit 00045e55fc2ef21445d127b2c0d09a015505683f @mmattozzi mmattozzi committed Feb 25, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 CocoaRestClientAppDelegate.m
@@ -440,7 +440,7 @@ - (IBAction) plusParamsRow:(id)sender {
[paramsTable addObject:row];
[paramsTableView reloadData];
- [paramsTableView selectRow:([paramsTable count] - 1) byExtendingSelection:NO];
+ [paramsTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:([paramsTable count] - 1)] byExtendingSelection:NO];
[paramsTableView editColumn:0 row:([paramsTable count] - 1) withEvent:nil select:YES];
[row release];
@@ -482,7 +482,7 @@ - (IBAction) plusFileRow:(id)sender {
[filesTable addObject:row];
[filesTableView reloadData];
- [filesTableView selectRow:([filesTable count] - 1) byExtendingSelection:NO];
+ [filesTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:([filesTable count] - 1)] byExtendingSelection:NO];
[filesTableView editColumn:0 row:([filesTable count] - 1) withEvent:nil select:YES];
[row release];
}
@@ -622,7 +622,7 @@ - (IBAction) plusHeaderRow:(id)sender {
NSMutableDictionary *row = [[NSMutableDictionary alloc] init];
[headersTable addObject:row];
[headersTableView reloadData];
- [headersTableView selectRow:([headersTable count] - 1) byExtendingSelection:NO];
+ [headersTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:([headersTable count] - 1)] byExtendingSelection:NO];
[headersTableView editColumn:0 row:([headersTable count] - 1) withEvent:nil select:YES];
[row release];

0 comments on commit 00045e5

Please sign in to comment.