Changeset 1574


Ignore:
Timestamp:
Mar 20, 2007, 7:46:40 PM (15 years ago)
Author:
livings124
Message:

get the app icon in the proper way, to avoid potential badging

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.m

    r1089 r1574  
    3838    if ((self = [super init]))
    3939    {
    40         fDockIcon = [[NSApp applicationIconImage] copy];
     40        fDockIcon = [NSImage imageNamed: @"NSApplicationIcon"];
    4141        fBadge = [NSImage imageNamed: @"Badge"];
    4242        fUploadBadge = [NSImage imageNamed: @"UploadBadge"];
     
    6262- (void) dealloc
    6363{
    64     [fDockIcon release];
    6564    [fAttributes release];
    66 
    6765    [super dealloc];
    6866}
  • trunk/macosx/InfoWindowController.m

    r1533 r1574  
    7272    if ((self = [super initWithWindowNibName: name]))
    7373    {
    74         fAppIcon = [[NSApp applicationIconImage] copy];
     74        fAppIcon = [NSImage imageNamed: @"NSApplicationIcon"];
    7575        fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
    7676        fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
     
    119119    if (fFiles)
    120120        [fFiles release];
    121 
    122     [fAppIcon release];
     121   
    123122    [fFolderIcon release];
    124123    [super dealloc];
Note: See TracChangeset for help on using the changeset viewer.