Files
Sparkle/Sparkle.h
T
Andy Matuschak c42e3a3f47 Fixed 251010
Fixes from Matt Stevens:
"For background applications (menu bar, completely UI-less, etc) there are a couple of issues with Sparkle notifications:

- When prompts such as the initial prompt to enable update checking are displayed they can be hidden behind other windows since the background app is not in focus. This can cause problems, as these prompts run modally and can stop the application from functioning without the user knowing why.

- If the update notification window is displayed and the user clicks away to another application, the window disappears and there is no way to get it back since there is no other UI to cause the app to activate. In this case the update should probably operate as a standard window since it is effectively operating as the application's UI."
2008-07-22 22:36:09 -07:00

59 lines
1.7 KiB
Objective-C

//
// Sparkle.h
// Sparkle
//
// Created by Andy Matuschak on 3/16/06. (Modified by CDHW on 23/12/07)
// Copyright 2006 Andy Matuschak. All rights reserved.
//
//
// Prefix header for all source files of the 'Sparkle' target in the 'Sparkle' project.
//
#ifndef SPARKLE_H
#define SPARKLE_H
#define SULocalizedString(key,comment) NSLocalizedStringFromTableInBundle(key, @"Sparkle", [NSBundle bundleWithIdentifier:@"org.andymatuschak.Sparkle"], comment)
#define SUAbstractFail() NSAssert2(nil, @"Can't call %@ on an instance of %@; this is an abstract method!", __PRETTY_FUNCTION__, [self class]);
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#import "SUConstants.h"
#endif
// This list should include the shared headers. It doesn't matter if some of them aren't shared (unless
// there are name-space collisions) so we can list all of them to start with:
#import "NSFileManager+Aliases.h"
#import "NSFileManager+Authentication.h"
#import "NSFileManager+Verification.h"
#import "NSWorkspace+SystemVersion.h"
#import "NTSynchronousTask.h"
#import "SUAppcast.h"
#import "SUAppcastItem.h"
#import "SUAutomaticUpdateAlert.h"
#import "SUAutomaticUpdateDriver.h"
#import "SUBasicUpdateDriver.h"
#import "SUConstants.h"
#import "SUHost.h"
#import "SUInstaller.h"
#import "SUProbingUpdateDriver.h"
#import "SUScheduledUpdateDriver.h"
#import "SUStandardVersionComparator.h"
#import "SUStatusController.h"
#import "SUSystemProfiler.h"
#import "SUUIBasedUpdateDriver.h"
#import "SUUnarchiver.h"
#import "SUUpdateAlert.h"
#import "SUUpdateDriver.h"
#import "SUUpdater.h"
#import "SUUpdatePermissionPrompt.h"
#import "SUUserInitiatedUpdateDriver.h"
#import "SUVersionComparisonProtocol.h"
#import "SUWindowController.h"
#endif