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