projects
/
enjoyable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e4bf29
)
Replace use of deprecated selectRow:byExtendingSelection:.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Tue, 26 Feb 2013 16:59:14 +0000
(17:59 +0100)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Tue, 26 Feb 2013 16:59:14 +0000
(17:59 +0100)
ConfigsController.m
patch
|
blob
|
history
diff --git
a/ConfigsController.m
b/ConfigsController.m
index
ce58f07
..
f6770cc
100644
(file)
--- a/
ConfigsController.m
+++ b/
ConfigsController.m
@@
-45,7
+45,7
@@
[removeButton setEnabled: ![config protect]];
[targetController load];
[(ApplicationController *)[[NSApplication sharedApplication] delegate] configChanged];
[removeButton setEnabled: ![config protect]];
[targetController load];
[(ApplicationController *)[[NSApplication sharedApplication] delegate] configChanged];
-
[tableView selectRow: [configs indexOfObject: config] byExtendingSelection:
NO];
+
[tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:[configs indexOfObject:config]] byExtendingSelection:
NO];
}
-(IBAction) addPressed: (id)sender {
}
-(IBAction) addPressed: (id)sender {
@@
-54,7
+54,7
@@
[configs addObject: newConfig];
[(ApplicationController *)[[NSApplication sharedApplication] delegate] configsChanged];
[tableView reloadData];
[configs addObject: newConfig];
[(ApplicationController *)[[NSApplication sharedApplication] delegate] configsChanged];
[tableView reloadData];
-
[tableView selectRow: ([configs count]-1) byExtendingSelection:
NO];
+
[tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:configs.count - 1] byExtendingSelection:
NO];
[tableView editColumn: 0 row:([configs count]-1) withEvent:nil select:YES];
}
-(IBAction) removePressed: (id)sender {
[tableView editColumn: 0 row:([configs count]-1) withEvent:nil select:YES];
}
-(IBAction) removePressed: (id)sender {