Changeset 71
- Timestamp:
- 03/17/03 19:37:09 (5 years ago)
- Files:
-
- trunk/MVPreferencesController.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/MVPreferencesController.m
r68 r71 34 34 - (id) init { 35 35 if( ( self = [super init] ) ) { 36 NSDirectoryEnumerator *enumerator = [[NSFileManager defaultManager] enumeratorAtPath:[NSString stringWithFormat:@"%@/Contents/PreferencePanes", [[NSBundle mainBundle] bundlePath]]]; 36 NSString *path = [NSString stringWithFormat:@"%@/Contents/PreferencePanes", [[NSBundle mainBundle] bundlePath]]; 37 NSDirectoryEnumerator *enumerator = [[NSFileManager defaultManager] enumeratorAtPath:path]; 37 38 NSString *file = nil; 38 39 NSBundle *bundle = nil; … … 44 45 while( ( file = [enumerator nextObject] ) ) { 45 46 if( [[file pathExtension] isEqualToString:@"prefPane"] ) { 46 bundle = [NSBundle bundleWithPath: file];47 bundle = [NSBundle bundleWithPath:[NSString stringWithFormat:@"%@/%@", path, file]]; 47 48 if( [bundle load] ) [panes addObject:bundle]; 48 49 }
