Changeset 3923
- Timestamp:
- Nov 21, 2007, 8:22:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/MessageWindowController.m
r3875 r3923 176 176 NSTableColumn * column = [tableView tableColumnWithIdentifier: @"Message"]; 177 177 178 int count = 0; 179 float width = [column width]; 180 if (width > 0) 181 { 182 if (!fAttributes) 183 fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain]; 184 185 count = [[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width / width; 186 } 187 178 if (!fAttributes) 179 fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain]; 180 181 int count = [[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width / [column width]; 188 182 return [tableView rowHeight] * (float)(count+1); 189 183 }
Note: See TracChangeset
for help on using the changeset viewer.