Changeset 917 for trunk/CPFPerianPrefPaneController.m
- Timestamp:
- 07/29/08 16:35:01 (4 months ago)
- Files:
-
- trunk/CPFPerianPrefPaneController.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/CPFPerianPrefPaneController.m
r909 r917 401 401 402 402 - (void) dealloc { 403 [[NSDistributedNotificationCenter defaultCenter] removeObserver:self name:UPDATE_STATUS_NOTIFICATION object:nil]; 403 404 [perianForumURL release]; 404 405 [perianDonateURL release]; … … 654 655 auth = nil; 655 656 656 int tag = 0;657 657 componentPath = [[self quickTimeComponentDir:userInstalled] stringByAppendingPathComponent:@"Perian.component"]; 658 658 if(auth != nil && !userInstalled) … … 685 685 - (IBAction)installUninstall:(id)sender 686 686 { 687 [progress_install startAnimation:sender];688 687 if(installStatus == InstallStatusInstalled) 689 688 [NSThread detachNewThreadSelector:@selector(uninstall:) toTarget:self withObject:nil]; … … 694 693 - (void)installComplete:(id)sender 695 694 { 696 [progress_install stopAnimation:sender];697 695 [self checkForInstallation]; 698 696 } 699 697 700 698 #pragma mark Check Updates 699 - (void)updateCheckStatusChanged:(NSNotification*)notification 700 { 701 NSString *status = [notification object]; 702 703 //FIXME localize these 704 if ([status isEqualToString:@"Starting"]) { 705 [textField_updateStatus setStringValue:@"Checking..."]; 706 } else if ([status isEqualToString:@"Error"]) { 707 [textField_updateStatus setStringValue:@"Couldn't reach the update server."]; 708 } else if ([status isEqualToString:@"NoUpdates"]) { 709 [textField_updateStatus setStringValue:@"There are no updates."]; 710 } else if ([status isEqualToString:@"NoUpdates"]) { 711 [textField_updateStatus setStringValue:@"Updates found!"]; 712 } 713 } 714 701 715 - (IBAction)updateCheck:(id)sender 702 716 { 703 717 FSRef updateCheckRef; 704 718 719 [[NSDistributedNotificationCenter defaultCenter] removeObserver:self name:UPDATE_STATUS_NOTIFICATION object:nil]; 720 [[NSDistributedNotificationCenter defaultCenter] addObserver:self selector:@selector(updateCheckStatusChanged:) name:UPDATE_STATUS_NOTIFICATION object:nil]; 705 721 CFPreferencesSetAppValue((CFStringRef)NEXT_RUN_KEY, NULL, perianAppID); 706 722 CFPreferencesSetAppValue((CFStringRef)MANUAL_RUN_KEY, [NSNumber numberWithBool:YES], perianAppID);
