Changeset 53991


Ignore:
Timestamp:
Jul 17, 2009, 11:52:40 PM (10 years ago)
Author:
juanger@…
Message:

Fixing predicate editor bug

Location:
branches/gsoc09-gui/MPGUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gsoc09-gui/MPGUI/MPActionLauncher.m

    r53817 r53991  
    8282- (void)loadPorts {
    8383    [self setIsLoading:YES];
    84     ports = [NSMutableArray arrayWithCapacity:6000];
    8584    NSDictionary *allPorts = [[MPMacPorts sharedInstance] search:MPPortsAll];
    8685    NSDictionary *installedPorts = [[MPRegistry sharedRegistry] installed];
    8786   
    8887    [self willChangeValueForKey:@"ports"];
    89     for (id port in allPorts) {
    90         MPPort *mpport = [allPorts objectForKey:port];
    91         [mpport setState:MPPortStateNotInstalled];
    92         [ports addObject:mpport];
    93     }
    94    
    9588    for (id port in installedPorts) {
    9689        [[allPorts objectForKey:port] setStateFromReceipts:[installedPorts objectForKey:port]];
    9790    }
     91    ports = [allPorts allValues];
    9892    [self didChangeValueForKey:@"ports"];
    9993   
  • branches/gsoc09-gui/MPGUI/PortsTableController.m

    r53683 r53991  
    6464        return;
    6565   
     66    if (newRowCount == 0) {
     67        [self setPredicate:[NSPredicate predicateWithFormat:@"name LIKE '*'"]];
     68    }
     69   
    6670    NSScrollView* tableScrollView = [portsTableView enclosingScrollView];
    6771    NSUInteger oldOutlineViewMask = [tableScrollView autoresizingMask];
Note: See TracChangeset for help on using the changeset viewer.