Changeset 4087


Ignore:
Timestamp:
Dec 7, 2007, 3:49:46 AM (14 years ago)
Author:
livings124
Message:

remove some nslogs

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/ButtonGroupToolbarItem.m

    r4086 r4087  
    4242{
    4343    NSSegmentedControl * control = (NSSegmentedControl *)[self view];
    44     NSLog(@"%d %d", [(NSSegmentedCell *)[control cell] tagForSegment: 0], [(NSSegmentedCell *)[control cell] tagForSegment: 1]);
    4544   
    4645    int i;
  • trunk/macosx/Controller.m

    r4086 r4087  
    27262726        NSSegmentedControl * segmentedControl = [[NSSegmentedControl alloc] initWithFrame: NSZeroRect];
    27272727        [groupItem setView: segmentedControl];
     2728        NSSegmentedCell * segmentedCell = (NSSegmentedCell *)[segmentedControl cell];
    27282729       
    27292730        [segmentedControl setSegmentCount: 2];
    2730         [(NSSegmentedCell *)[segmentedControl cell] setTrackingMode: NSSegmentSwitchTrackingMomentary];
     2731        [segmentedCell setTrackingMode: NSSegmentSwitchTrackingMomentary];
    27312732       
    27322733        [groupItem setLabel: NSLocalizedString(@"Apply All", "All toolbar item -> label")];
     
    27372738        [groupItem setIdentifiers: [NSArray arrayWithObjects: TOOLBAR_PAUSE_ALL, TOOLBAR_RESUME_ALL, nil]];
    27382739       
    2739         [(NSSegmentedCell *)[segmentedControl cell] setTag: TOOLBAR_PAUSE_TAG forSegment: TOOLBAR_PAUSE_TAG];
     2740        [segmentedCell setTag: TOOLBAR_PAUSE_TAG forSegment: TOOLBAR_PAUSE_TAG];
    27402741        [segmentedControl setImage: [NSImage imageNamed: @"PauseAll.png"] forSegment: TOOLBAR_PAUSE_TAG];
    2741         [(NSSegmentedCell *)[segmentedControl cell] setToolTip: NSLocalizedString(@"Pause all transfers",
    2742                                                         "All toolbar item -> tooltip") forSegment: TOOLBAR_PAUSE_TAG];
    2743        
    2744         [(NSSegmentedCell *)[segmentedControl cell] setTag: TOOLBAR_RESUME_TAG forSegment: TOOLBAR_RESUME_TAG];
     2742        [segmentedCell setToolTip: NSLocalizedString(@"Pause all transfers",
     2743                                    "All toolbar item -> tooltip") forSegment: TOOLBAR_PAUSE_TAG];
     2744       
     2745        [segmentedCell setTag: TOOLBAR_RESUME_TAG forSegment: TOOLBAR_RESUME_TAG];
    27452746        [segmentedControl setImage: [NSImage imageNamed: @"ResumeAll.png"] forSegment: TOOLBAR_RESUME_TAG];
    2746         [(NSSegmentedCell *)[segmentedControl cell] setToolTip: NSLocalizedString(@"Resume all transfers",
    2747                                                         "All toolbar item -> tooltip") forSegment: TOOLBAR_RESUME_TAG];
    2748         NSLog(@"%d %d", [(NSSegmentedCell *)[segmentedControl cell] tagForSegment: TOOLBAR_PAUSE_TAG],
    2749         [(NSSegmentedCell *)[segmentedControl cell] tagForSegment: TOOLBAR_RESUME_TAG]);
     2747        [segmentedCell setToolTip: NSLocalizedString(@"Resume all transfers",
     2748                                    "All toolbar item -> tooltip") forSegment: TOOLBAR_RESUME_TAG];
    27502749       
    27512750        [groupItem createMenu: [NSArray arrayWithObjects: NSLocalizedString(@"Pause All", "All toolbar item -> label"),
     
    27662765        NSSegmentedControl * segmentedControl = [[NSSegmentedControl alloc] initWithFrame: NSZeroRect];
    27672766        [groupItem setView: segmentedControl];
     2767        NSSegmentedCell * segmentedCell = (NSSegmentedCell *)[segmentedControl cell];
    27682768       
    27692769        [segmentedControl setSegmentCount: 2];
    2770         [(NSSegmentedCell *)[segmentedControl cell] setTrackingMode: NSSegmentSwitchTrackingMomentary];
     2770        [segmentedCell setTrackingMode: NSSegmentSwitchTrackingMomentary];
    27712771       
    27722772        NSSize groupSize = NSMakeSize(72.0, 25.0);
     
    27812781        [groupItem setIdentifiers: [NSArray arrayWithObjects: TOOLBAR_PAUSE_SELECTED, TOOLBAR_RESUME_SELECTED, nil]];
    27822782       
    2783         [(NSSegmentedCell *)[segmentedControl cell] setTag: TOOLBAR_PAUSE_TAG forSegment: TOOLBAR_PAUSE_TAG];
     2783        [segmentedCell setTag: TOOLBAR_PAUSE_TAG forSegment: TOOLBAR_PAUSE_TAG];
    27842784        [segmentedControl setImage: [NSImage imageNamed: @"PauseSelected.png"] forSegment: TOOLBAR_PAUSE_TAG];
    2785         [(NSSegmentedCell *)[segmentedControl cell] setToolTip: NSLocalizedString(@"Pause selected transfers",
    2786                                                         "Selected toolbar item -> tooltip") forSegment: TOOLBAR_PAUSE_TAG];
    2787        
    2788         [(NSSegmentedCell *)[segmentedControl cell] setTag: TOOLBAR_RESUME_TAG forSegment: TOOLBAR_RESUME_TAG];
     2785        [segmentedCell setToolTip: NSLocalizedString(@"Pause selected transfers",
     2786                                    "Selected toolbar item -> tooltip") forSegment: TOOLBAR_PAUSE_TAG];
     2787       
     2788        [segmentedCell setTag: TOOLBAR_RESUME_TAG forSegment: TOOLBAR_RESUME_TAG];
    27892789        [segmentedControl setImage: [NSImage imageNamed: @"ResumeSelected.png"] forSegment: TOOLBAR_RESUME_TAG];
    2790         [(NSSegmentedCell *)[segmentedControl cell] setToolTip: NSLocalizedString(@"Resume selected transfers",
    2791                                                         "Selected toolbar item -> tooltip") forSegment: TOOLBAR_RESUME_TAG];
     2790        [segmentedCell setToolTip: NSLocalizedString(@"Resume selected transfers",
     2791                                    "Selected toolbar item -> tooltip") forSegment: TOOLBAR_RESUME_TAG];
    27922792       
    27932793        [groupItem createMenu: [NSArray arrayWithObjects: NSLocalizedString(@"Pause Selected", "Selected toolbar item -> label"),
Note: See TracChangeset for help on using the changeset viewer.