Changeset 7426


Ignore:
Timestamp:
Dec 17, 2008, 2:13:49 AM (12 years ago)
Author:
livings124
Message:

get rid of an unnecessary class

Location:
trunk/macosx
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r7370 r7426  
    4545#import "NSApplicationAdditions.h"
    4646#import "NSStringAdditions.h"
    47 #import "NSMenuAdditions.h"
    4847#import "ExpandedPathToPathTransformer.h"
    4948#import "ExpandedPathToIconTransformer.h"
     
    22852284- (void) menuNeedsUpdate: (NSMenu *) menu
    22862285{
    2287     #warning streamline?
    22882286    if (menu == fGroupsSetMenu || menu == fGroupsSetContextMenu)
    22892287    {
     
    22922290       
    22932291        NSMenu * groupMenu = [[GroupsController groups] groupMenuWithTarget: self action: @selector(setGroup:) isSmall: NO];
    2294         [menu appendItemsFromMenu: groupMenu atIndexes: [NSIndexSet indexSetWithIndexesInRange:
    2295                 NSMakeRange(0, [groupMenu numberOfItems])] atBottom: NO];
     2292        const NSInteger groupMenuCount = [groupMenu numberOfItems];
     2293        for (NSInteger i = 0; i < groupMenuCount; i++)
     2294        {
     2295            NSMenuItem * item = [[groupMenu itemAtIndex: 0] retain];
     2296            [groupMenu removeItemAtIndex: 0];
     2297            [menu addItem: item];
     2298            [item release];
     2299        }
    22962300    }
    22972301    else if (menu == fGroupFilterMenu)
     
    23022306        NSMenu * groupMenu = [[GroupsController groups] groupMenuWithTarget: self action: @selector(setGroupFilter:)
    23032307                                isSmall: YES];
    2304         [menu appendItemsFromMenu: groupMenu atIndexes: [NSIndexSet indexSetWithIndexesInRange:
    2305                 NSMakeRange(0, [groupMenu numberOfItems])] atBottom: YES];
     2308        const NSInteger groupMenuCount = [groupMenu numberOfItems];
     2309        for (NSInteger i = 0; i < groupMenuCount; i++)
     2310        {
     2311            NSMenuItem * item = [[groupMenu itemAtIndex: 0] retain];
     2312            [groupMenu removeItemAtIndex: 0];
     2313            [menu addItem: item];
     2314            [item release];
     2315        }
    23062316    }
    23072317    else if (menu == fUploadMenu || menu == fDownloadMenu)
  • trunk/macosx/Makefile.am

    r7290 r7426  
    9090    NSBezierPathAdditions.h \
    9191    NSBezierPathAdditions.m \
    92     NSMenuAdditions.h \
    93     NSMenuAdditions.m \
    9492    NSStringAdditions.h \
    9593    NSStringAdditions.m \
Note: See TracChangeset for help on using the changeset viewer.