Changeset 431


Ignore:
Timestamp:
Jun 22, 2006, 2:51:59 AM (17 years ago)
Author:
livings124
Message:

Might as well get this small change in.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.h

    r417 r431  
    2828@interface InfoWindowController : NSWindowController
    2929{
    30     NSMutableArray * fTorrents, * fFiles;
     30    NSArray * fTorrents;
     31    NSMutableArray * fFiles;
    3132    NSImage * fAppIcon;
    3233   
  • trunk/macosx/InfoWindowController.m

    r425 r431  
    5656    fAppIcon = [[NSApp applicationIconImage] copy];
    5757   
     58    fTorrents = [[NSArray alloc] init];
    5859    fFiles = [[NSMutableArray alloc] initWithCapacity: 6];
    5960    [fFileTable setDoubleAction: @selector(revealFile:)];
     
    7475- (void) dealloc
    7576{
    76     if (fTorrents)
    77         [fTorrents release];
     77    [fTorrents release];
    7878    [fFiles release];
    7979
     
    8484- (void) updateInfoForTorrents: (NSArray *) torrents
    8585{
    86     if (fTorrents)
    87         [fTorrents release];
     86    [fTorrents release];
    8887    fTorrents = [torrents retain];
    8988
     
    315314{
    316315    NSRect windowRect = [window frame];
    317     windowRect.size.width = [window minSize].width;
    318    
     316    windowRect.size.width = [window minSize].width;   
    319317    return windowRect;
    320318}
     
    329327- (void) setWindowForTab: (NSString *) identifier animate: (BOOL) animate
    330328{
    331     NSWindow * window = [self window];
    332     NSRect frame = [window frame];
    333 
    334329    float height;
    335    
    336330    if ([identifier isEqualToString: TAB_ACTIVITY_IDENT])
    337331        height = TAB_ACTIVITY_HEIGHT;
     
    343337        height = TAB_INFO_HEIGHT;
    344338   
     339    NSWindow * window = [self window];
     340    NSRect frame = [window frame];
    345341    NSView * view = [[fTabView selectedTabViewItem] view];
     342   
    346343    float difference = height - [view frame].size.height;
    347344    frame.origin.y -= difference;
Note: See TracChangeset for help on using the changeset viewer.