mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Fixed some warnings related to the Gestalt call.
Made the em-dash in the update alert dialog the kosher way.
This commit is contained in:
1 parent
2f357f03fe
commit
e90c558717
2 files changed
+5
-5
No files matched your search
+1
-1
@@ -158,7 +158,7 @@
|
||||
|
||||
- (NSString *)descriptionText
|
||||
{
|
||||
return [NSString stringWithFormat:SULocalizedString(@"%@ %@ is now available—you have %@. Would you like to download it now?", nil), [hostBundle name], [updateItem versionString], [hostBundle displayVersion]];
|
||||
return [NSString stringWithFormat:SULocalizedString(@"%@ %@ is now available%Cyou have %@. Would you like to download it now?", nil), [hostBundle name], [updateItem versionString], 0x2014, [hostBundle displayVersion]];
|
||||
}
|
||||
|
||||
- (void)webView:(WebView *)sender didFinishLoadForFrame:frame
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
// This returns a version string of the form X.Y.Z
|
||||
inline NSString* SUSystemVersionString(void)
|
||||
{
|
||||
long major, minor, bugfix;
|
||||
OSErr err1 = Gestalt (gestaltSystemVersionMajor, &major);
|
||||
OSErr err2 = Gestalt (gestaltSystemVersionMinor, &minor);
|
||||
OSErr err3 = Gestalt (gestaltSystemVersionBugFix, &bugfix);
|
||||
SInt32 major, minor, bugfix;
|
||||
OSErr err1 = Gestalt(gestaltSystemVersionMajor, &major);
|
||||
OSErr err2 = Gestalt(gestaltSystemVersionMinor, &minor);
|
||||
OSErr err3 = Gestalt(gestaltSystemVersionBugFix, &bugfix);
|
||||
NSString* verStr = nil;
|
||||
if (!err1 && !err2 && !err3)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user