Changeset 286


Ignore:
Timestamp:
Jun 7, 2006, 10:02:28 PM (16 years ago)
Author:
livings124
Message:

No need to create an autoreleased object and then retain it when it can be done in one step.

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.m

    r272 r286  
    4848        [stringShadow setShadowBlurRadius: 4];
    4949       
    50         fAttributes = [[NSDictionary dictionaryWithObjectsAndKeys:
     50        fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
    5151            [NSColor whiteColor], NSForegroundColorAttributeName,
    5252            [NSFont fontWithName: @"Helvetica-Bold" size: 28], NSFontAttributeName,
    53             stringShadow, NSShadowAttributeName,
    54             nil] retain];
     53            stringShadow, NSShadowAttributeName, nil];
    5554       
    5655        [stringShadow release];
  • trunk/macosx/Controller.m

    r285 r286  
    10131013        [item setLabel: @"Inspector"];
    10141014        [item setPaletteLabel: @"Show/Hide Inspector"];
    1015         [item setToolTip: @"Displays torrent inspector"];
     1015        [item setToolTip: @"Display torrent inspector"];
    10161016        [item setImage: [NSImage imageNamed: @"Info.png"]];
    10171017        [item setTarget: self];
  • trunk/macosx/SmoothAquaView.m

    r277 r286  
    3131        if ((self = [super initWithFrame:frameRect]))
    3232    {
    33                 fBackgroundColor = [NSColor colorWithPatternImage:
    34                             [NSImage imageNamed: @"StatusBorder"]];
    35         [fBackgroundColor retain];
     33                fBackgroundColor = [[NSColor colorWithPatternImage:
     34                            [NSImage imageNamed: @"StatusBorder"]] retain];
    3635        }
    3736        return self;
Note: See TracChangeset for help on using the changeset viewer.