Changeset 710


Ignore:
Timestamp:
Jul 30, 2006, 8:53:25 PM (15 years ago)
Author:
livings124
Message:

Remove observer in filter buttons when finished.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BarButton.m

    r688 r710  
    5252}
    5353
     54- (void) dealloc
     55{
     56    [[NSNotificationCenter defaultCenter] removeObserver: self];
     57
     58    [fButtonNormal release];
     59    [fButtonOver release];
     60    [fButtonPressed release];
     61    [fButtonSelected release];
     62    [fButtonSelectedDim release];
     63   
     64    [super dealloc];
     65}
     66
    5467//call only once
    5568- (void) createButtons
     
    201214}
    202215
    203 - (void) dealloc
    204 {
    205     [fButtonNormal release];
    206     [fButtonOver release];
    207     [fButtonPressed release];
    208     [fButtonSelected release];
    209     [fButtonSelectedDim release];
    210    
    211     [super dealloc];
    212 }
    213 
    214216- (void) mouseEntered: (NSEvent *) event
    215217{
  • trunk/macosx/Controller.m

    r708 r710  
    534534{
    535535    if (code == NSOKButton)
    536         [self performSelectorOnMainThread: @selector(openFromSheet:)
    537                     withObject: [panel filenames] waitUntilDone: NO];
     536        [self performSelectorOnMainThread: @selector(openFromSheet:) withObject: [panel filenames] waitUntilDone: NO];
    538537}
    539538
     
    790789    if (code == NSOKButton)
    791790        [[NSFileManager defaultManager] copyPath: [[torrents objectAtIndex: 0] torrentLocation]
    792                 toPath: [panel filename] handler: nil];
     791            toPath: [panel filename] handler: nil];
    793792   
    794793    [torrents removeObjectAtIndex: 0];
     
    801800    NSIndexSet * indexSet = [fTableView selectedRowIndexes];
    802801    unsigned int i;
    803    
    804802    for (i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
    805803        [[fFilteredTorrents objectAtIndex: i] revealData];
Note: See TracChangeset for help on using the changeset viewer.