Changeset 576 for trunk/Cocoa/Pester
- Timestamp:
- 08/03/09 08:10:13 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/NJRQTMediaPopUpButton.m
r560 r576 139 139 NSDirectoryEnumerator *de = [fm enumeratorAtPath: folderPath]; 140 140 NSString *path; 141 NSString *displayName; 141 142 while ( (path = [de nextObject]) != nil) { 142 143 BOOL isDir; … … 148 149 if (![QTMovie canInitWithFile: path]) continue; 149 150 150 item = [menu addItemWithTitle: [fm displayNameAtPath: path] 151 displayName = [fm displayNameAtPath: path]; 152 if ([[NSNumber numberWithBool: NO] isEqualTo: [[de fileAttributes] objectForKey: NSFileExtensionHidden]]) 153 displayName = [displayName stringByDeletingPathExtension]; 154 155 item = [menu addItemWithTitle: displayName 151 156 action: @selector(_systemSoundSelected:) 152 157 keyEquivalent: @""];
Note:
See TracChangeset
for help on using the changeset viewer.