Ignore:
Timestamp:
Apr 22, 2008, 1:25:53 PM (14 years ago)
Author:
livings124
Message:

revert the last commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r5664 r5665  
    3636#import "ButtonToolbarItem.h"
    3737#import "GroupToolbarItem.h"
     38#import "ToolbarSegmentedCell.h"
    3839#import "NSApplicationAdditions.h"
    3940#import "NSStringAdditions.h"
     
    30923093        GroupToolbarItem * groupItem = [[GroupToolbarItem alloc] initWithItemIdentifier: ident];
    30933094       
    3094         NSSegmentedControl * segmentedControl = [[NSSegmentedControl alloc] init];
     3095        NSSegmentedControl * segmentedControl = [[NSSegmentedControl alloc] initWithFrame: NSZeroRect];
     3096        [segmentedControl setCell: [[[ToolbarSegmentedCell alloc] init] autorelease]];
    30953097        [groupItem setView: segmentedControl];
    30963098        NSSegmentedCell * segmentedCell = (NSSegmentedCell *)[segmentedControl cell];
     
    31303132        GroupToolbarItem * groupItem = [[GroupToolbarItem alloc] initWithItemIdentifier: ident];
    31313133       
    3132         NSSegmentedControl * segmentedControl = [[NSSegmentedControl alloc] init];
     3134        NSSegmentedControl * segmentedControl = [[NSSegmentedControl alloc] initWithFrame: NSZeroRect];
     3135        [segmentedControl setCell: [[[ToolbarSegmentedCell alloc] init] autorelease]];
    31333136        [groupItem setView: segmentedControl];
    31343137        NSSegmentedCell * segmentedCell = (NSSegmentedCell *)[segmentedControl cell];
Note: See TracChangeset for help on using the changeset viewer.