mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
- It contains its own copy of Sparkle.strings and SUUpdateStatus.nib so it can show its progress prettier - We call TransformProcessType() before our first call to [NSApplication sharedApplication], so we can be launched as a command line tool and get a proper window server connection, and so our progress bars animate. - We still support the old "relaunch"-style mode of operation, just by not passing the folder to install. This is useful for other relaunch occasions, like setting one's own dock icon flag. - To do: Make sample app use the new finish_installation.
17 lines
513 B
Plaintext
17 lines
513 B
Plaintext
//
|
|
// Sparkle.pch
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 7/23/08.
|
|
// Copyright 2008 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#define SPARKLE_BUNDLE [NSBundle mainBundle]
|
|
#define SULocalizedString(key,comment) NSLocalizedStringFromTableInBundle(key, @"Sparkle", SPARKLE_BUNDLE, 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
|