Ignore:
Timestamp:
Jul 22, 2006, 6:25:11 PM (16 years ago)
Author:
livings124
Message:

Remove and resize after sheet disappears.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r659 r660  
    666666
    667667            NSBeginAlertSheet(title, @"Remove", @"Cancel", nil, fWindow, self,
    668                 @selector(removeSheetDidEnd:returnCode:contextInfo:), nil, dict, message);
     668                nil, @selector(removeSheetDidEnd:returnCode:contextInfo:), dict, message);
    669669            return;
    670670        }
     
    21212121- (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame
    21222122{
    2123     return [self windowFrameFor: [fFilteredTorrents count]];
     2123    return [self windowFrameForAmount: [fFilteredTorrents count]];
    21242124}
    21252125
     
    21332133{
    21342134    if ([fDefaults boolForKey: @"AutoSize"])
    2135         [fWindow setFrame: [self windowFrameFor: [fTorrents count]] display: YES animate: YES];
    2136 }
    2137 
    2138 - (NSRect) windowFrameFor: (int) count
     2135        [fWindow setFrame: [self windowFrameForAmount: [fTorrents count]] display: YES animate: YES];
     2136}
     2137
     2138- (NSRect) windowFrameForAmount: (int) amount
    21392139{
    21402140    NSRect frame = [fWindow frame];
    21412141    float newHeight = frame.size.height - [fScrollView frame].size.height
    2142         + count * ([fTableView rowHeight] + [fTableView intercellSpacing].height);
     2142        + amount * ([fTableView rowHeight] + [fTableView intercellSpacing].height);
    21432143
    21442144    float minHeight = [fWindow minSize].height;
Note: See TracChangeset for help on using the changeset viewer.