random cleanup

This commit is contained in:
Mitchell Livingston 2007-10-12 11:33:26 +00:00
parent 64c5255c8e
commit 1e9cb5a21a
2 changed files with 6 additions and 7 deletions

View File

@ -36,13 +36,11 @@
- (void) setIcon: (NSImage *) image
{
//create regular back image
if (fRegularImage)
[fRegularImage release];
[fRegularImage release];
fRegularImage = [[NSImage imageNamed: @"InfoTabBack.tif"] copy];
//create selected back image
if (fSelectedImage)
[fSelectedImage release];
[fSelectedImage release];
fSelectedImage = [[NSImage imageNamed: @"InfoTabBackAqua.tif"] copy];
//composite image to back images

View File

@ -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];
}