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:
andym committed 2007-12-30 12:45:12 +00:00
1 parent 2f357f03fe
commit e90c558717
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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
+4 -4
View File
@@ -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)
{