Changeset 3714


Ignore:
Timestamp:
Nov 5, 2007, 12:47:20 PM (14 years ago)
Author:
livings124
Message:

move dock badging preference change notification into the Badger

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.m

    r3695 r3714  
    5656            [view release];
    5757        }
     58       
     59        //change that just impacts the dock badge
     60        [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateBadge)
     61                                                name: @"DockBadgeChange" object: nil];
    5862    }
    5963   
     
    6367- (void) dealloc
    6468{
     69    [[NSNotificationCenter defaultCenter] removeObserver: self];
     70   
    6571    [fDockIcon release];
    6672    [fAttributes release];
  • trunk/macosx/Controller.h

    r3702 r3714  
    217217- (void) doNothing: (id) sender; //needed for menu items that use bindings with no associated action
    218218
    219 - (void) updateDockBadge: (NSNotification *) notification;
    220 
    221219- (void) setWindowSizeToFit;
    222220- (NSRect) sizedWindowFrame;
  • trunk/macosx/Controller.m

    r3702 r3714  
    412412                    name: @"UpdateQueue" object: nil];
    413413   
    414     //change that just impacts the dock badge
    415     [nc addObserver: self selector: @selector(updateDockBadge:)
    416                     name: @"DockBadgeChange" object: nil];
    417    
    418414    //open newly created torrent file
    419415    [nc addObserver: self selector: @selector(beginCreateFile:)
     
    590586    [fBadger clearBadge];
    591587   
    592     //wait for running transfers to stop and for NAT to be disabled (5 second timeout)
     588    //wait for NAT to be disabled (5 second timeout)
    593589    NSDate * startDate = [NSDate date];
    594590   
     
    613609    [fTempTorrentFiles release];
    614610   
     611    //complete cleanup
    615612    tr_close(fLib);
    616613}
     
    32103207}
    32113208
    3212 - (void) updateDockBadge: (NSNotification *) notification
    3213 {
    3214     [fBadger updateBadge];
    3215 }
    3216 
    32173209- (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame
    32183210{
Note: See TracChangeset for help on using the changeset viewer.