Changeset 844


Ignore:
Timestamp:
Sep 5, 2006, 2:12:07 AM (15 years ago)
Author:
livings124
Message:

Use built-in ability for verifying notifications' objects and update message log a little less often.

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BarButton.m

    r732 r844  
    4949       
    5050        [nc addObserver: self selector: @selector(setForActive:)
    51                     name: NSWindowDidBecomeKeyNotification object: nil];
     51                    name: NSWindowDidBecomeKeyNotification object: [self window]];
    5252       
    5353        [nc addObserver: self selector: @selector(setForInactive:)
    54                     name: NSWindowDidResignKeyNotification object: nil];
     54                    name: NSWindowDidResignKeyNotification object: [self window]];
    5555       
    5656        [nc addObserver: self selector: @selector(resetBounds:)
     
    253253- (void) setForActive: (NSNotification *) notification
    254254{
    255     if ([notification object] != [self window])
    256         return;
    257 
    258255    if ([self image] == fButtonSelectedDim)
    259256        [self setImage: fButtonSelected];
     
    267264- (void) setForInactive: (NSNotification *) notification
    268265{
    269     if ([notification object] != [self window])
    270         return;
    271 
    272266    [self setImage: [self image] == fButtonSelected ? fButtonSelectedDim : fButtonNormalDim];
    273267   
    274268    if (fTrackingTag)
     269    {
    275270        [self removeTrackingRect: fTrackingTag];
     271        fTrackingTag = 0;
     272    }
    276273}
    277274
  • trunk/macosx/MessageWindowController.m

    r842 r844  
    3030#define LEVEL_DEBUG 2
    3131
    32 #define UPDATE_SECONDS  0.4
     32#define UPDATE_SECONDS  0.6
    3333#define MAX_LINES       1000
    3434
  • trunk/macosx/TorrentCell.m

    r843 r844  
    9797- (void) dealloc
    9898{
    99     #warning make work
     99    #warning should work?
    100100    //[fErrorImage release];
    101101    [super dealloc];
     
    110110{
    111111    if ([barImage size].width < width)
    112         [barImage setSize: NSMakeSize(width * 1.5, BAR_HEIGHT)];
     112        [barImage setSize: NSMakeSize(width * 2.0, BAR_HEIGHT)];
    113113
    114114    [barImage compositeToPoint: point fromRect: NSMakeRect(0, 0, width, BAR_HEIGHT) operation: NSCompositeSourceOver];
Note: See TracChangeset for help on using the changeset viewer.