Commit 2b2d9393 authored by thakis@chromium.org's avatar thakis@chromium.org

mac: -[NSTableColumn initWithIdentifier:] takes NSString instead of id with the 10.7 sdk.

BUG=136844
TEST=none


Review URL: https://chromiumcodereview.appspot.com/10826027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148562 0039d316-1c4b-4281-b951-d872f2087c98
parent 84829155
......@@ -223,7 +223,7 @@ class SortHelper {
// if the column is initially visible.
- (NSTableColumn*)addColumnWithId:(int)columnId visible:(BOOL)isVisible {
scoped_nsobject<NSTableColumn> column([[NSTableColumn alloc]
initWithIdentifier:[NSNumber numberWithInt:columnId]]);
initWithIdentifier:[NSString stringWithFormat:@"%d", columnId]]);
NSTextAlignment textAlignment =
(columnId == IDS_TASK_MANAGER_TASK_COLUMN ||
......
......@@ -71,7 +71,7 @@ TEST_F(TaskManagerWindowControllerTest, Sort) {
// Test that table is sorted on title.
NSTableColumn* title_column = [table tableColumnWithIdentifier:
[NSNumber numberWithInt:IDS_TASK_MANAGER_TASK_COLUMN]];
[NSString stringWithFormat:@"%d", IDS_TASK_MANAGER_TASK_COLUMN]];
NSCell* cell;
cell = [controller tableView:table dataCellForTableColumn:title_column row:0];
EXPECT_NSEQ(@"zzb", [cell title]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment