avoid unnecessarily creating a text cell
This commit is contained in:
parent
327f278976
commit
a471a36cf1
|
@ -97,7 +97,7 @@
|
||||||
- (id) dataCellForRow: (NSInteger) row
|
- (id) dataCellForRow: (NSInteger) row
|
||||||
{
|
{
|
||||||
return (row == -1 || [[fTorrents objectAtIndex: row] isKindOfClass: [Torrent class]]) ? [[[TorrentCell alloc] init] autorelease]
|
return (row == -1 || [[fTorrents objectAtIndex: row] isKindOfClass: [Torrent class]]) ? [[[TorrentCell alloc] init] autorelease]
|
||||||
: [[[NSTextFieldCell alloc] init] autorelease];
|
: nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) tableView: (NSTableView *) tableView isGroupRow: (NSInteger) row
|
- (BOOL) tableView: (NSTableView *) tableView isGroupRow: (NSInteger) row
|
||||||
|
|
Loading…
Reference in New Issue