Changeset 89 for trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEController.m
- Timestamp:
- 02/10/03 06:33:41 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEController.m
r74 r89 31 31 - (id)initWithAPE:(NSBundle*)apeBundle andBundle:(NSBundle*)prefPaneBundle 32 32 { 33 [self set Bundle:prefPaneBundle]; // save our bundle for future use33 [self setAPEBundle:apeBundle prefPaneBundle:prefPaneBundle]; 34 34 35 35 [NSBundle loadNibNamed:@"APE Manager plugin" owner:self]; // load our nib file; it will call our awakeFromNib method … … 47 47 - (void)willUnload 48 48 { 49 // we do nothing here, as well 49 [prefs release]; 50 prefs = nil; 50 51 } 51 52 … … 65 66 prefs = [[CFPreferencesWrapper_ICeCoffEE preferencesWithApplication: (NSString *)kICBundleIdentifier] retain]; 66 67 68 CFBundleRef apeBundle = CFBundleCreate(NULL, (CFURLRef)[NSURL fileURLWithPath: [_apeBundle bundlePath]]); 69 if ([prefs integerForKey: ICP(LastLoadedVersion)] != CFBundleGetVersionNumber(apeBundle)) { 70 [tabView selectTabViewItemWithIdentifier: @"noPrefs"]; 71 CFRelease(apeBundle); 72 return; 73 } 74 CFRelease(apeBundle); 75 [tabView selectTabViewItemWithIdentifier: @"prefs"]; 76 67 77 [commandClickEnabled setState: [prefs boolForKey: ICP(CommandClickEnabled)]]; 68 78 [self commandClickEnabled: nil]; … … 78 88 } 79 89 80 - (void)set Bundle:(NSBundle *)aBundle;90 - (void)setAPEBundle:(NSBundle*)apeBundle prefPaneBundle:(NSBundle *)aBundle; 81 91 { 92 [apeBundle retain]; 93 [_apeBundle release]; 94 _apeBundle = apeBundle; 82 95 [aBundle retain]; 83 96 [_bundle release];
Note:
See TracChangeset
for help on using the changeset viewer.