From 845deecdc341b2f2742469275df8ed4be6fb0e4d Mon Sep 17 00:00:00 2001 From: Jeevanandam Madanagopal Date: Fri, 20 Sep 2013 17:46:48 +0530 Subject: [PATCH] Prepared for distribution --- ReplyWithHeader/RwhMailBundle.m | 6 +++--- ReplyWithHeader/RwhMailMacros.h | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ReplyWithHeader/RwhMailBundle.m b/ReplyWithHeader/RwhMailBundle.m index baf2916..d8478a9 100644 --- a/ReplyWithHeader/RwhMailBundle.m +++ b/ReplyWithHeader/RwhMailBundle.m @@ -170,11 +170,11 @@ + (NSString *)bundleNameAndVersion { } + (NSString *)bundleName { - return [[self bundle] infoDictionary][RwhMailBundleNameKey]; + return [[[self bundle] infoDictionary] objectForKey:RwhMailBundleNameKey]; } + (NSString *)bundleVersionString { - return [[self bundle] infoDictionary][RwhMailBundleShortVersionKey]; + return [[[self bundle] infoDictionary] objectForKey:RwhMailBundleShortVersionKey]; } + (NSString *)bundleShortName { @@ -182,7 +182,7 @@ + (NSString *)bundleShortName { } + (NSString *)bundleCopyright { - return [[self bundle] infoDictionary][RwhMailCopyRightKey]; + return [[[self bundle] infoDictionary] objectForKey:RwhMailCopyRightKey]; } + (BOOL)isEnabled { diff --git a/ReplyWithHeader/RwhMailMacros.h b/ReplyWithHeader/RwhMailMacros.h index 6b014fe..0602835 100644 --- a/ReplyWithHeader/RwhMailMacros.h +++ b/ReplyWithHeader/RwhMailMacros.h @@ -37,5 +37,3 @@ #define REMOVE_USER_DEFAULT(k) [[NSUserDefaults standardUserDefaults] removeObjectForKey: k] #define GET_BOOL_USER_DEFAULT(k) [[NSUserDefaults standardUserDefaults] boolForKey: k] #define SET_BOOL_USER_DEFAULT(b,k) SET_USER_DEFAULT( [NSNumber numberWithBool: b], k ) - -#define GET_BUNDLE_VALUE(k) [[[NSBundle bundleForClass:[RwhMailBundle class]] infoDictionary] objectForKey: k] \ No newline at end of file