From 088e7ede1be1c82825a8e401bd6fb2a6d0c9bca3 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 27 Feb 2003 23:21:23 +0000 Subject: [PATCH] Add 'plst' 0 resources to help Mac OS X do magic things. These aren't actually compiled yet because they must only be present in the Carbon build, and I don't currently compile the resources separately for each platform. git-svn-id: svn://svn.tartarus.org/sgt/putty@2898 cda61777-01e9-0310-a592-d414129be87e --- mac/mac_res.r | 34 ++++++++++++++++++++++++++++++++-- mac/macpgen.r | 34 ++++++++++++++++++++++++++++++++-- 2 files changed, 64 insertions(+), 4 deletions(-) diff --git a/mac/mac_res.r b/mac/mac_res.r index 965b7153..78071c72 100644 --- a/mac/mac_res.r +++ b/mac/mac_res.r @@ -1,6 +1,6 @@ -/* $Id: mac_res.r,v 1.28 2003/02/23 11:58:59 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 @@ -162,6 +162,36 @@ resource 'kind' (129) { } }; +#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) { + "\n" + "\n" + "\n" + " \n" + " CFBundleInfoDictionaryVersion 6.0\n" + " CFBundleIdentifier\n" + " org.tartarus.projects.putty.putty\n" + " CFBundleName PuTTY\n" + " CFBundlePackageType APPL\n" + " CFBundleSignature pTTY\n" + " \n" + "\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 */ diff --git a/mac/macpgen.r b/mac/macpgen.r index 1c47330d..11bea8d5 100644 --- a/mac/macpgen.r +++ b/mac/macpgen.r @@ -1,6 +1,6 @@ -/* $Id: macpgen.r,v 1.5 2003/02/23 13:31:12 ben Exp $ */ +/* $Id: macpgen.r,v 1.6 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 @@ -111,6 +111,36 @@ resource 'kind' (129) { } }; +#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) { + "\n" + "\n" + "\n" + " \n" + " CFBundleInfoDictionaryVersion 6.0\n" + " CFBundleIdentifier\n" + " org.tartarus.projects.putty.puttygen\n" + " CFBundleName PuTTYgen\n" + " CFBundlePackageType APPL\n" + " CFBundleSignature pGen\n" + " \n" + "\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 */ /* Random seed icon */ -- 2.11.0