Changeset 55985 in webkit


Ignore:
Timestamp:
Mar 15, 2010 12:04:30 AM (14 years ago)
Author:
Darin Adler
Message:

2010-03-14 Darin Adler <Darin Adler>

Reviewed by Mark Rowe.

Remove unneeded dependency on non-string identifier for an NSTableColumn
https://bugs.webkit.org/show_bug.cgi?id=36106

  • WebView/WebTextCompletionController.mm: (-[WebTextCompletionController _buildUI]): Use init instead of initWithIdentifier: because the table has only one column and that column does not need an identifier.
Location:
trunk/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/mac/ChangeLog

    r55946 r55985  
     12010-03-14  Darin Adler  <darin@apple.com>
     2
     3        Reviewed by Mark Rowe.
     4
     5        Remove unneeded dependency on non-string identifier for an NSTableColumn
     6        https://bugs.webkit.org/show_bug.cgi?id=36106
     7
     8        * WebView/WebTextCompletionController.mm:
     9        (-[WebTextCompletionController _buildUI]): Use init instead of initWithIdentifier:
     10        because the table has only one column and that column does not need an identifier.
     11
    1122010-03-12  Beth Dakin  <bdakin@apple.com>
    213
  • trunk/WebKit/mac/WebView/WebTextCompletionController.mm

    r49806 r55985  
    8585    NSRect tableFrame = NSZeroRect;   
    8686    tableFrame.size = [NSScrollView contentSizeForFrameSize:scrollFrame.size hasHorizontalScroller:NO hasVerticalScroller:YES borderType:NSNoBorder];
    87     // Added cast to work around problem with multiple Foundation initWithIdentifier: methods with different parameter types.
    88     NSTableColumn *column = [(NSTableColumn *)[NSTableColumn alloc] initWithIdentifier:[NSNumber numberWithInt:0]];
     87    NSTableColumn *column = [[NSTableColumn alloc] init];
    8988    [column setWidth:tableFrame.size.width];
    9089    [column setEditable:NO];
Note: See TracChangeset for help on using the changeset viewer.