only set the inspector reveal button image on 10.5

This commit is contained in:
Mitchell Livingston 2009-10-26 02:02:25 +00:00
parent db80a915aa
commit 397cad4c04
1 changed files with 10 additions and 12 deletions

View File

@ -154,21 +154,22 @@ typedef enum
[fTabMatrix selectCellWithTag: tag];
[self setTab: nil];
//reset images for reveal button, since the images are also used in the main table
NSImage * revealOn = [[NSImage imageNamed: @"RevealOn.png"] copy],
* revealOff = [[NSImage imageNamed: @"RevealOff.png"] copy];
if (![NSApp isOnSnowLeopardOrBetter])
{
//reset images for reveal button, since the images are also used in the main table
NSImage * revealOn = [[NSImage imageNamed: @"RevealOn.png"] copy],
* revealOff = [[NSImage imageNamed: @"RevealOff.png"] copy];
[revealOn setFlipped: NO];
[revealOff setFlipped: NO];
[fRevealDataButton setImage: revealOff];
[fRevealDataButton setAlternateImage: revealOn];
[revealOn release];
[revealOff release];
}
[fRevealDataButton setImage: revealOff];
[fRevealDataButton setAlternateImage: revealOn];
[revealOn release];
[revealOff release];
//initially sort peer table by IP
if ([[fPeerTable sortDescriptors] count] == 0)
[fPeerTable setSortDescriptors: [NSArray arrayWithObject: [[fPeerTable tableColumnWithIdentifier: @"IP"]
@ -439,13 +440,10 @@ typedef enum
[fDateAddedField setObjectValue: [torrent dateAdded]];
[fRevealDataButton setHidden: NO];
//allow these fields to be selected
[fHashField setSelectable: YES];
[fCommentView setSelectable: ![commentString isEqualToString: @""]];
[fCreatorField setSelectable: ![creatorString isEqualToString: @""]];
[fDataLocationField setSelectable: YES];
//set pieces view
BOOL piecesAvailableSegment = [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];