Changeset 584


Ignore:
Timestamp:
Jul 15, 2006, 6:48:17 PM (16 years ago)
Author:
livings124
Message:

Remove old tracking rect before adding it.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BarButton.h

    r579 r584  
    3232    NSString * fPrefString, * fPrefKey;
    3333    BOOL fEnabled;
     34   
     35    NSTrackingRectTag trackingTag;
    3436}
    3537
  • trunk/macosx/BarButton.m

    r583 r584  
    6868- (void) awakeFromNib
    6969{
    70     [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
     70    trackingTag = [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
    7171}
    7272
     
    161161- (void) resetBounds: (NSNotification *) notification
    162162{
     163    [self removeTrackingRect: trackingTag];
    163164    [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
    164165}
Note: See TracChangeset for help on using the changeset viewer.