random cleanup
This commit is contained in:
parent
64c5255c8e
commit
1e9cb5a21a
|
@ -36,12 +36,10 @@
|
|||
- (void) setIcon: (NSImage *) image
|
||||
{
|
||||
//create regular back image
|
||||
if (fRegularImage)
|
||||
[fRegularImage release];
|
||||
fRegularImage = [[NSImage imageNamed: @"InfoTabBack.tif"] copy];
|
||||
|
||||
//create selected back image
|
||||
if (fSelectedImage)
|
||||
[fSelectedImage release];
|
||||
fSelectedImage = [[NSImage imageNamed: @"InfoTabBackAqua.tif"] copy];
|
||||
|
||||
|
|
|
@ -185,9 +185,10 @@
|
|||
NSIndexSet * indexes = [fMessageTable selectedRowIndexes];
|
||||
NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [indexes count]];
|
||||
|
||||
unsigned int i;
|
||||
for (i = [indexes firstIndex]; i != NSNotFound; i = [indexes indexGreaterThanIndex: i])
|
||||
[messageStrings addObject: [self stringForMessage: [fMessages objectAtIndex: i]]];
|
||||
NSEnumerator * enumerator = [[fMessages objectsAtIndexes: indexes] objectEnumerator];
|
||||
NSDictionary * message;
|
||||
while ((message = [enumerator nextObject]))
|
||||
[messageStrings addObject: [self stringForMessage: message]];
|
||||
|
||||
[pb setString: [messageStrings componentsJoinedByString: @"\n"] forType: NSStringPboardType];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue