Ignore:
Timestamp:
12/21/09 22:12:37 (15 years ago)
Author:
Nicholas Riley
Message:

Rename variables which shadow stdlib functions (and maxSize).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/NJRQTMediaPopUpButton.m

    r600 r602  
    433433{
    434434    BDAlias *alias = [sender representedObject];
    435     int index = [self indexOfItem: sender], otherIndex = [self indexOfItem: otherItem];
     435    int itemIndex = [self indexOfItem: sender], otherIndex = [self indexOfItem: otherItem];
    436436    [self _setAlias: alias];
    437437    if (![self _validateWithPreview: YES]) {
    438438        [[self menu] removeItem: sender];
    439     } else if (index > otherIndex + 1) { // move "other" item to top of list
    440         int recentIndex = [recentMediaAliasData count] - index + otherIndex;
    441         NSMenuItem *item = [[self itemAtIndex: index] retain];
     439    } else if (itemIndex > otherIndex + 1) { // move "other" item to top of list
     440        int recentIndex = [recentMediaAliasData count] - itemIndex + otherIndex;
     441        NSMenuItem *item = [[self itemAtIndex: itemIndex] retain];
    442442        NSData *data = [[recentMediaAliasData objectAtIndex: recentIndex] retain];
    443443        // [self _validateRecentMedia];
    444         [self removeItemAtIndex: index];
     444        [self removeItemAtIndex: itemIndex];
    445445        [[self menu] insertItem: item atIndex: otherIndex + 1];
    446446        [self selectItem: item];
Note: See TracChangeset for help on using the changeset viewer.