Changeset 47 for trunk/Cocoa


Ignore:
Timestamp:
11/10/02 11:33:45 (18 years ago)
Author:
Nicholas Riley
Message:

Pester 1.1a2 (again).

NJRQTMediaPopUpButton: Don't add in -_addRecentMediaAtPath if title or path is nil.

Location:
trunk/Cocoa/Pester/Source
Files:
2 edited

Legend:

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

    r45 r47  
    5151    NSString *title = [[NSFileManager defaultManager] displayNameAtPath: path];
    5252    NSMenu *menu = [self menu];
    53     NSMenuItem *item = [menu insertItemWithTitle: title action: @selector(_aliasSelected:) keyEquivalent: @"" atIndex: [menu indexOfItem: otherItem] + 1];
     53    NSMenuItem *item;
     54    if (title == nil || path == nil) return nil;
     55    item = [menu insertItemWithTitle: title action: @selector(_aliasSelected:) keyEquivalent: @"" atIndex: [menu indexOfItem: otherItem] + 1];
    5456    [item setTarget: self];
    5557    [item setRepresentedObject: alias];
  • trunk/Cocoa/Pester/Source/Pester.pbproj/nicholas.pbxuser

    r45 r47  
    1212                        F500E5370359719B01AEEDB1,
    1313                        F5B15F74037E42EB01AEEDB1,
    14                         F5B15F79037E45E301AEEDB1,
     14                        F562F810037E79EE01AEEDB1,
    1515                );
    1616                executables = (
     
    138138                                Template = F5CA7ECB015C094F0DCA290F;
    139139                                ToolbarVisible = NO;
    140                                 WindowLocation = "{415, 482}";
     140                                WindowLocation = "{390, 201}";
    141141                        };
    142142                        PBXWorkspaceContents = (
     
    870870                vrLoc = 5663;
    871871        };
     872        F562F810037E79EE01AEEDB1 = {
     873                isa = PBXSymbolicBreakpoint;
     874                state = 1;
     875                symbolName = "-[PSAlarmSetController awakeFromNib]";
     876        };
    872877        F596730D0355CFA301407038 = {
    873878                isa = PBXSymbolicBreakpoint;
     
    959964                symbolName = "-[NSException raise]";
    960965        };
    961         F5B15F79037E45E301AEEDB1 = {
    962                 isa = PBXSymbolicBreakpoint;
    963                 state = 1;
    964                 symbolName = "-[NSCFString characterAtIndex:]";
    965         };
    966966        F5B163A5037E543A01AEEDB1 = {
    967967                fRef = F59DC6FD0354188F01AEEDB1;
Note: See TracChangeset for help on using the changeset viewer.