-/* $Id: mac_res.r,v 1.26 2003/02/07 01:38:12 ben Exp $ */
+/* $Id: mac_res.r,v 1.29 2003/02/27 23:21:23 ben Exp $ */
/*
- * Copyright (c) 1999, 2002 Ben Harris
+ * Copyright (c) 1999, 2002, 2003 Ben Harris
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
/* Get resource IDs we share with C code */
#include "macresid.h"
-/*
- * Current PuTTY version number. Minor is in BCD
- */
-#define VERSION_MAJOR 0x00
-#define VERSION_MINOR 0x53
+#include "version.r"
/*
* Finder-related resources
resource 'SIZE' (-1) {
reserved,
- ignoreSuspendResumeEvents,
+ acceptSuspendResumeEvents,
reserved,
canBackground,
- needsActivateOnFGSwitch,
+ doesActivateOnFGSwitch,
backgroundAndForeground,
dontGetFrontClicks,
ignoreAppDiedEvents,
}
};
+#if TARGET_API_MAC_CARBON
+/*
+ * Mac OS X Info.plist.
+ * See Tech Note TN2013 for details.
+ * We don't bother with things that Mac OS X seems to be able to get from
+ * other resources.
+ */
+type 'plst' as 'TEXT';
+
+resource 'plst' (0) {
+ "<?xml version='1.0' encoding='UTF-8'?>\n"
+ "<!DOCTYPE plist PUBLIC '-//Apple Computer//DTD PLIST 1.0//EN'\n"
+ " 'http://www.apple.com/DTDs/PropertyList-1.0.dtd'>\n"
+ "<plist version='1.0'>\n"
+ " <dict>\n"
+ " <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string>\n"
+ " <key>CFBundleIdentifier</key>\n"
+ " <string>org.tartarus.projects.putty.putty</string>\n"
+ " <key>CFBundleName</key> <string>PuTTY</string>\n"
+ " <key>CFBundlePackageType</key> <string>APPL</string>\n"
+ " <key>CFBundleSignature</key> <string>pTTY</string>\n"
+ " </dict>\n"
+ "</plist>\n"
+};
+
+/* Mac OS X doesn't use this, but Mac OS 9 does. */
+type 'carb' as 'TEXT';
+resource 'carb' (0) { "" };
+#endif
+
/* Icons, courtesy of DeRez */
/* Application icon */
$"00FFFFFFFFFFFFFFFFFFFFFFFFFF"
};
-resource 'vers' (1, purgeable) {
-#ifdef RELEASE
- VERSION_MAJOR, VERSION_MINOR,
- beta,
-#else
- VERSION_MAJOR, VERSION_MINOR + 1,
- development,
-#endif
- 0, /* No prerelease version */
- verBritain,
-#ifdef RELEASESTR
- RELEASESTR,
- "Release " RELEASESTR,
-#else
-#ifdef SNAPSHOTSTR
- SNAPSHOTSTR,
- "Development snapshot " SNAPSHOTSTR,
-#else
- "unknown",
- "Unidentified build, " $$Date " " $$Time,
-#endif
-#endif
-};
-
-resource 'vers' (2, purgeable) {
-#ifdef RELEASE
- VERSION_MAJOR, VERSION_MINOR,
- beta,
-#else
- VERSION_MAJOR, VERSION_MINOR + 1,
- development,
-#endif
- 0, /* No prerelease version */
- verBritain,
-#ifdef RELEASESTR
- RELEASESTR,
- "PuTTY " RELEASESTR,
-#else
-#ifdef SNAPSHOTSTR
- SNAPSHOTSTR,
- "PuTTY snapshot " SNAPSHOTSTR,
-#else
- "unknown",
- "PuTTY",
-#endif
-#endif
-};
-
/*
* Resources to copy into created files
*/