Updated the Growl SDK to 2.0. adium-1.5.4
authorThijs Alkemade <thijsalkemade@gmail.com>
Thu, 16 Aug 2012 09:45:58 +0200
branchadium-1.5.4
changeset 500147e32218485b
parent 5000 a5d36b70de96
child 5003 a577d388f81e
Updated the Growl SDK to 2.0.

Fixes #15867.
Frameworks/Growl.framework/Versions/A/Growl
Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h
Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h
Frameworks/Growl.framework/Versions/A/Headers/GrowlPluginPreferenceStrings.h
Frameworks/Growl.framework/Versions/A/Resources/Info.plist
Frameworks/Growl.framework/Versions/A/_CodeSignature/CodeResources
     1.1 Binary file Frameworks/Growl.framework/Versions/A/Growl has changed
     2.1 --- a/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h	Wed Aug 15 23:28:27 2012 +0200
     2.2 +++ b/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h	Thu Aug 16 09:45:58 2012 +0200
     2.3 @@ -112,7 +112,7 @@
     2.4   *
     2.5   *	@param inDelegate The delegate for the GrowlApplicationBridge. It must conform to the GrowlApplicationBridgeDelegate protocol.
     2.6   */
     2.7 -+ (void) setGrowlDelegate:(NSObject<GrowlApplicationBridgeDelegate> *)inDelegate;
     2.8 ++ (void) setGrowlDelegate:(id<GrowlApplicationBridgeDelegate>)inDelegate;
     2.9  
    2.10  /*!
    2.11   *	@method growlDelegate
    2.12 @@ -120,7 +120,7 @@
    2.13   *	@discussion See setGrowlDelegate: for details.
    2.14   *	@result The Growl delegate.
    2.15   */
    2.16 -+ (NSObject<GrowlApplicationBridgeDelegate> *) growlDelegate;
    2.17 ++ (id<GrowlApplicationBridgeDelegate>) growlDelegate;
    2.18  
    2.19  #pragma mark -
    2.20  
    2.21 @@ -260,6 +260,7 @@
    2.22   *	 Growl when next it is ready; <code>NO</code> if not.
    2.23   */
    2.24  + (void) setWillRegisterWhenGrowlIsReady:(BOOL)flag;
    2.25 +
    2.26  /*!	@method	willRegisterWhenGrowlIsReady
    2.27   *	@abstract	Reports whether GrowlApplicationBridge will register with Growl
    2.28   *	 when Growl next launches.
    2.29 @@ -361,6 +362,7 @@
    2.30   *	 copy of <code>regDict</code>.
    2.31   */
    2.32  + (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict;
    2.33 +
    2.34  /*!	@method	registrationDictionaryByFillingInDictionary:restrictToKeys:
    2.35   *	@abstract	Tries to fill in missing keys in a registration dictionary.
    2.36   *	@discussion	This method examines the passed-in dictionary for missing keys,
    2.37 @@ -400,6 +402,32 @@
    2.38  + (NSDictionary *) notificationDictionaryByFillingInDictionary:(NSDictionary *)regDict;
    2.39  
    2.40  + (NSDictionary *) frameworkInfoDictionary;
    2.41 +
    2.42 +#pragma mark -
    2.43 +
    2.44 +/*!
    2.45 + *@method growlURLSchemeAvailable
    2.46 + *@abstract Lets the app know whether growl:// is registered on the system, used for certain methods below this
    2.47 + *@return Returns whether growl:// is registered on the system
    2.48 + *@discussion Methods such as openGrowlPreferences rely on the growl:// URL scheme to function
    2.49 + * Further, this method can provide a check on whether Growl is installed, 
    2.50 + * however, the framework will not be relying on this method for choosing when/how to notify, 
    2.51 + * and it is not recommended that the app rely on it for other than whether to use growl:// methods
    2.52 + *@since Growl.framework 1.4
    2.53 + */
    2.54 ++ (BOOL) isGrowlURLSchemeAvailable;
    2.55 +
    2.56 +/*!
    2.57 + * @method openGrowlPreferences:
    2.58 + * @abstract Open Growl preferences, optionally to this app's settings, growl:// method
    2.59 + * @param showApp Whether to show the application's settings, otherwise just opens to the last position
    2.60 + * @return Return's whether opening the URL was succesfull or not.  
    2.61 + * @discussion Will launch if Growl is installed, but not running, and open the preferences window
    2.62 + * Uses growl:// URL scheme
    2.63 + * @since Growl.framework 1.4
    2.64 + */
    2.65 ++ (BOOL) openGrowlPreferences:(BOOL)showApp;
    2.66 +
    2.67  @end
    2.68  
    2.69  //------------------------------------------------------------------------------
    2.70 @@ -408,27 +436,15 @@
    2.71  /*!
    2.72   *	@protocol GrowlApplicationBridgeDelegate
    2.73   *	@abstract Required protocol for the Growl delegate.
    2.74 - *	@discussion The methods in this protocol are required and are called
    2.75 + *	@discussion The methods in this protocol are optional and are called
    2.76   *	 automatically as needed by GrowlApplicationBridge. See
    2.77   *	 <code>+[GrowlApplicationBridge setGrowlDelegate:]</code>.
    2.78   *	 See also <code>GrowlApplicationBridgeDelegate_InformalProtocol</code>.
    2.79   */
    2.80  
    2.81 -@protocol GrowlApplicationBridgeDelegate
    2.82 +@protocol GrowlApplicationBridgeDelegate <NSObject>
    2.83  
    2.84 -// -registrationDictionaryForGrowl has moved to the informal protocol as of 0.7.
    2.85 -
    2.86 -@end
    2.87 -
    2.88 -//------------------------------------------------------------------------------
    2.89 -#pragma mark -
    2.90 -
    2.91 -/*!
    2.92 - *	@category NSObject(GrowlApplicationBridgeDelegate_InformalProtocol)
    2.93 - *	@abstract Methods which may be optionally implemented by the GrowlDelegate.
    2.94 - *	@discussion The methods in this informal protocol will only be called if implemented by the delegate.
    2.95 - */
    2.96 -@interface NSObject (GrowlApplicationBridgeDelegate_InformalProtocol)
    2.97 +@optional
    2.98  
    2.99  /*!
   2.100   *	@method registrationDictionaryForGrowl
     3.1 --- a/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h	Wed Aug 15 23:28:27 2012 +0200
     3.2 +++ b/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h	Thu Aug 16 09:45:58 2012 +0200
     3.3 @@ -99,6 +99,14 @@
     3.4  *  This key is optional.
     3.5  */
     3.6  #define GROWL_NOTIFICATIONS_DESCRIPTIONS		XSTR("NotificationDescriptions")
     3.7 +/*! @defined GROWL_NOTIFICATIONS_ICONS
     3.8 + *  @abstract A dictionary of icons for each notification
     3.9 + *  @discussion This is an NSDictionary whose keys are GROWL_NOTIFICATION_NAME strings and whose objects are
    3.10 + *  icons for each notification, for GNTP spec
    3.11 + *
    3.12 + *  This key is optional.
    3.13 + */
    3.14 +#define GROWL_NOTIFICATIONS_ICONS XSTR("NotificationIcons")
    3.15  
    3.16  /*!	@defined	GROWL_TICKET_VERSION
    3.17   *	@abstract	The version of your registration ticket.
    3.18 @@ -212,6 +220,19 @@
    3.19  */
    3.20  #define GROWL_NOTIFICATION_PROGRESS		XSTR("NotificationProgress")
    3.21  
    3.22 +/*!	@defined GROWL_NOTIFICATION_ALREADY_SHOWN
    3.23 + *	@abstract If this key is set, it should contain a bool value wrapped
    3.24 + *   in a NSNumber which describes whether the notification has
    3.25 + *   already been displayed, for instance by built in Notification
    3.26 + *   Center support.  This value can be used to allow display
    3.27 + *   plugins to skip a notification, while still allowing Growl
    3.28 + *   actions to run on them.
    3.29 + *
    3.30 + *	 Optional. Not supported by all display plugins.
    3.31 + */
    3.32 +#define GROWL_NOTIFICATION_ALREADY_SHOWN		XSTR("AlreadyShown")
    3.33 +
    3.34 +
    3.35  // Notifications
    3.36  #pragma mark Notifications
    3.37  
    3.38 @@ -316,6 +337,28 @@
    3.39   */
    3.40  #define GROWL_DISTRIBUTED_NOTIFICATION_TIMED_OUT_SUFFIX		XSTR("GrowlTimedOut!")
    3.41  
    3.42 +/*!	@defined GROWL_DISTRIBUTED_NOTIFICATION_NOTIFICATIONCENTER_ON
    3.43 + *	@abstract The distributed notification sent when the Notification Center support is toggled on in Growl 2.0
    3.44 + *	@discussion When the user enables Notification Center support in Growl 2.0, this notification is sent
    3.45 + *      to inform all running apps that they should now speak to Notification Center directly.
    3.46 + */
    3.47 +#define GROWL_DISTRIBUTED_NOTIFICATION_NOTIFICATIONCENTER_ON		XSTR("GrowlNotificationCenterOn!")
    3.48 +
    3.49 +/*!	@defined GROWL_DISTRIBUTED_NOTIFICATION_NOTIFICATIONCENTER_OFF
    3.50 + *	@abstract The distributed notification sent when the Notification Center support is toggled off in Growl 2.0
    3.51 + *	@discussion When the user enables Notification Center support in Growl 2.0, this notification is sent
    3.52 + *      to inform all running apps that they should no longer speak to Notification Center directly.
    3.53 + */
    3.54 +#define GROWL_DISTRIBUTED_NOTIFICATION_NOTIFICATIONCENTER_OFF		XSTR("GrowlNotificationCenterOff!")
    3.55 +
    3.56 +/*!	@defined GROWL_DISTRIBUTED_NOTIFICATION_NOTIFICATIONCENTER_QUERY
    3.57 + *	@abstract The distributed notification sent by an application to query Growl 2.0's notification center support.
    3.58 + *	@discussion When an app starts up, it will send this query to get Growl 2.0 to spit out whether notification
    3.59 + *      center support is on or off.
    3.60 + */
    3.61 +#define GROWL_DISTRIBUTED_NOTIFICATION_NOTIFICATIONCENTER_QUERY		XSTR("GrowlNotificationCenterYN?")
    3.62 +
    3.63 +
    3.64  /*!	@group Other symbols */
    3.65  /* Symbols which don't fit into any of the other categories. */
    3.66  
    3.67 @@ -338,4 +381,6 @@
    3.68  
    3.69  #define GROWL_POSITION_PREFERENCE_KEY			@"GrowlSelectedPosition"
    3.70  
    3.71 +#define GROWL_PLUGIN_CONFIG_ID XSTR("GrowlPluginConfigurationID")
    3.72 +
    3.73  #endif //ndef _GROWLDEFINES_H
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/Frameworks/Growl.framework/Versions/A/Headers/GrowlPluginPreferenceStrings.h	Thu Aug 16 09:45:58 2012 +0200
     4.3 @@ -0,0 +1,67 @@
     4.4 +//
     4.5 +//  GrowlPluginPreferenceStrings.h
     4.6 +//  Growl
     4.7 +//
     4.8 +//  Created by Daniel Siemer on 1/30/12.
     4.9 +//  Copyright (c) 2012 The Growl Project. All rights reserved.
    4.10 +//
    4.11 +
    4.12 +/* FOR GROWL DEVELOPED COCOA PLUGINS ONLY AT THIS TIME, NOT STABLE */
    4.13 +
    4.14 +#import <Foundation/Foundation.h>
    4.15 +
    4.16 +#define GrowlDisplayOpacity NSLocalizedStringFromTable(@"Opacity:", @"PluginPrefStrings", @"How clear the display is")
    4.17 +#define GrowlDisplayDuration NSLocalizedStringFromTable(@"Duration:", @"PluginPrefStrings", @"How long a notification will stay on screen")
    4.18 +
    4.19 +#define GrowlDisplayPriority NSLocalizedStringFromTable(@"Priority: (low to high)", @"PluginPrefStrings", @"Label for columns of color wells for various priority levels")
    4.20 +#define GrowlDisplayPriorityLow NSLocalizedStringFromTable(@"Very Low", @"PluginPrefStrings", @"Notification Priority Very Low")
    4.21 +#define GrowlDisplayPriorityModerate NSLocalizedStringFromTable(@"Moderate", @"PluginPrefStrings", @"Notification Priority Moderate")
    4.22 +#define GrowlDisplayPriorityNormal NSLocalizedStringFromTable(@"Normal", @"PluginPrefStrings", @"Notification Priority Normal")
    4.23 +#define GrowlDisplayPriorityHigh NSLocalizedStringFromTable(@"High", @"PluginPrefStrings", @"Notification Priority High")
    4.24 +#define GrowlDisplayPriorityEmergency NSLocalizedStringFromTable(@"Emergency", @"PluginPrefStrings", @"Notification Priority Emergency")
    4.25 +
    4.26 +#define GrowlDisplayTextColor NSLocalizedStringFromTable(@"Text", @"PluginPrefStrings", @"Label for row of color wells for the text element of the plugin")
    4.27 +#define GrowlDisplayBackgroundColor NSLocalizedStringFromTable(@"Background", @"PluginPrefStrings", @"Label for row of color wells for the background of the plugin")
    4.28 +
    4.29 +#define GrowlDisplayLimitLines NSLocalizedStringFromTable(@"Limit to 2-5 lines", @"PluginPrefStrings", @"Checkbox to limit the display to 2-5 lines")
    4.30 +#define GrowlDisplayScreen NSLocalizedStringFromTable(@"Screen:", @"PluginPrefStrings", @"Label for box to select screen for display to use")
    4.31 +#define GrowlDisplaySize NSLocalizedStringFromTable(@"Size:", @"PluginPrefStrings", @"Label for pop up box for selecting the size of the display")
    4.32 +#define GrowlDisplaySizeNormal NSLocalizedStringFromTable(@"Normal", @"PluginPrefStrings", @"Normal size for the display")
    4.33 +#define GrowlDisplaySizeLarge NSLocalizedStringFromTable(@"Large", @"PluginPrefStrings", @"Large size for the display")
    4.34 +#define GrowlDisplaySizeSmall NSLocalizedStringFromTable(@"Small", @"PluginPrefStrings", @"Small size for the display")
    4.35 +
    4.36 +#define GrowlDisplayFloatingIcon NSLocalizedStringFromTable(@"Floating Icon", @"PluginPrefStrings", @"Label for checkbox that says to do a floating icon")
    4.37 +
    4.38 +#define GrowlDisplayEffect NSLocalizedStringFromTable(@"Effect:", @"PluginPrefStrings", @"Label for the effect to use")
    4.39 +#define GrowlDisplayEffectSlide NSLocalizedStringFromTable(@"Slide", @"PluginPrefStrings", @"A slide effect")
    4.40 +#define GrowlDisplayEffectFade NSLocalizedStringFromTable(@"Fade", @"PluginPrefStrings", @"A fade effect")
    4.41 +
    4.42 +@interface GrowlPluginPreferenceStrings : NSObject
    4.43 +
    4.44 +@property (nonatomic, retain) NSString *growlDisplayOpacity;
    4.45 +@property (nonatomic, retain) NSString *growlDisplayDuration;
    4.46 +
    4.47 +@property (nonatomic, retain) NSString *growlDisplayPriority;
    4.48 +@property (nonatomic, retain) NSString *growlDisplayPriorityVeryLow;
    4.49 +@property (nonatomic, retain) NSString *growlDisplayPriorityModerate;
    4.50 +@property (nonatomic, retain) NSString *growlDisplayPriorityNormal;
    4.51 +@property (nonatomic, retain) NSString *growlDisplayPriorityHigh;
    4.52 +@property (nonatomic, retain) NSString *growlDisplayPriorityEmergency;
    4.53 +
    4.54 +@property (nonatomic, retain) NSString *growlDisplayTextColor;
    4.55 +@property (nonatomic, retain) NSString *growlDisplayBackgroundColor;
    4.56 +
    4.57 +@property (nonatomic, retain) NSString *growlDisplayLimitLines;
    4.58 +@property (nonatomic, retain) NSString *growlDisplayScreen;
    4.59 +@property (nonatomic, retain) NSString *growlDisplaySize;
    4.60 +@property (nonatomic, retain) NSString *growlDisplaySizeNormal;
    4.61 +@property (nonatomic, retain) NSString *growlDisplaySizeLarge;
    4.62 +@property (nonatomic, retain) NSString *growlDisplaySizeSmall;
    4.63 +
    4.64 +@property (nonatomic, retain) NSString *growlDisplayFloatingIcon;
    4.65 +
    4.66 +@property (nonatomic, retain) NSString *effectLabel;
    4.67 +@property (nonatomic, retain) NSString *slideEffect;
    4.68 +@property (nonatomic, retain) NSString *fadeEffect;
    4.69 +
    4.70 +@end
     5.1 --- a/Frameworks/Growl.framework/Versions/A/Resources/Info.plist	Wed Aug 15 23:28:27 2012 +0200
     5.2 +++ b/Frameworks/Growl.framework/Versions/A/Resources/Info.plist	Thu Aug 16 09:45:58 2012 +0200
     5.3 @@ -3,7 +3,7 @@
     5.4  <plist version="1.0">
     5.5  <dict>
     5.6  	<key>BuildMachineOSBuild</key>
     5.7 -	<string>11C74</string>
     5.8 +	<string>12A269</string>
     5.9  	<key>CFBundleDevelopmentRegion</key>
    5.10  	<string>English</string>
    5.11  	<key>CFBundleExecutable</key>
    5.12 @@ -15,25 +15,25 @@
    5.13  	<key>CFBundlePackageType</key>
    5.14  	<string>FMWK</string>
    5.15  	<key>CFBundleShortVersionString</key>
    5.16 -	<string>1.3.1</string>
    5.17 +	<string>2.0</string>
    5.18  	<key>CFBundleSignature</key>
    5.19  	<string>GRRR</string>
    5.20  	<key>CFBundleVersion</key>
    5.21 -	<string>1.3.1</string>
    5.22 +	<string>2.0</string>
    5.23  	<key>DTCompiler</key>
    5.24  	<string>com.apple.compilers.llvm.clang.1_0</string>
    5.25  	<key>DTPlatformBuild</key>
    5.26 -	<string>4D199</string>
    5.27 +	<string>4F250</string>
    5.28  	<key>DTPlatformVersion</key>
    5.29  	<string>GM</string>
    5.30  	<key>DTSDKBuild</key>
    5.31 -	<string>11C63</string>
    5.32 +	<string>12A264</string>
    5.33  	<key>DTSDKName</key>
    5.34 -	<string>macosx10.7</string>
    5.35 +	<string>macosx10.8</string>
    5.36  	<key>DTXcode</key>
    5.37 -	<string>0420</string>
    5.38 +	<string>0440</string>
    5.39  	<key>DTXcodeBuild</key>
    5.40 -	<string>4D199</string>
    5.41 +	<string>4F250</string>
    5.42  	<key>NSPrincipalClass</key>
    5.43  	<string>GrowlApplicationBridge</string>
    5.44  </dict>
     6.1 --- a/Frameworks/Growl.framework/Versions/A/_CodeSignature/CodeResources	Wed Aug 15 23:28:27 2012 +0200
     6.2 +++ b/Frameworks/Growl.framework/Versions/A/_CodeSignature/CodeResources	Thu Aug 16 09:45:58 2012 +0200
     6.3 @@ -6,7 +6,7 @@
     6.4  	<dict>
     6.5  		<key>Resources/Info.plist</key>
     6.6  		<data>
     6.7 -		SwzGt9RQsuVafBBrfBalB75dCwU=
     6.8 +		lnx8exuPwE/bsUq32R5DXDQholc=
     6.9  		</data>
    6.10  	</dict>
    6.11  	<key>rules</key>