Changeset 13071
- Timestamp:
- Nov 2, 2011, 11:13:02 PM (11 years ago)
- Location:
- trunk/macosx/Growl.framework/Versions/A
- Files:
-
- 2 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Growl.framework/Versions/A/Headers/Growl.h
r10123 r13071 1 #include "GrowlDefines.h"1 #include <Growl/GrowlDefines.h> 2 2 3 3 #ifdef __OBJC__ 4 # include "GrowlApplicationBridge.h"4 # include <Growl/GrowlApplicationBridge.h> 5 5 #endif 6 #include "GrowlApplicationBridge-Carbon.h" -
trunk/macosx/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h
r10123 r13071 19 19 #import <Foundation/Foundation.h> 20 20 #import <AppKit/AppKit.h> 21 #import "GrowlDefines.h"21 #import <Growl/GrowlDefines.h> 22 22 23 23 //Forward declarations 24 24 @protocol GrowlApplicationBridgeDelegate; 25 26 //Internal notification when the user chooses not to install (to avoid continuing to cache notifications awaiting installation)27 #define GROWL_USER_CHOSE_NOT_TO_INSTALL_NOTIFICATION @"User chose not to install"28 25 29 26 //------------------------------------------------------------------------------ … … 46 43 * @abstract Detects whether Growl is installed. 47 44 * @discussion Determines if the Growl prefpane and its helper app are installed. 48 * @result Returns YES if Growl is installed, NO otherwise.49 */ 50 + (BOOL) isGrowlInstalled ;45 * @result this method will forever return YES. 46 */ 47 + (BOOL) isGrowlInstalled __attribute__((deprecated)); 51 48 52 49 /*! … … 57 54 */ 58 55 + (BOOL) isGrowlRunning; 56 57 58 /*! 59 * @method isMistEnabled 60 * @abstract Gives the caller a fairly good indication of whether or not built-in notifications(Mist) will be used. 61 * @discussion since this call makes use of isGrowlRunning it is entirely possible for this value to change between call and 62 * executing a notification dispatch 63 * @result Returns YES if Growl isn't reachable and the developer has not opted-out of 64 * Mist and the user hasn't set the global mist enable key to false. 65 */ 66 + (BOOL)isMistEnabled; 67 68 /*! 69 * @method setShouldUseBuiltInNotifications 70 * @abstract opt-out mechanism for the mist notification style in the event growl can't be reached. 71 * @discussion if growl is unavailable due to not being installed or as a result of being turned off then 72 * this option can enable/disable a built-in fire and forget display style 73 * @param should Specifies whether or not the developer wants to opt-in (default) or opt out 74 * of the built-in Mist style in the event Growl is unreachable. 75 */ 76 + (void)setShouldUseBuiltInNotifications:(BOOL)should; 77 78 /*! 79 * @method shouldUseBuiltInNotifications 80 * @abstract returns the current opt-in state of the framework's use of the Mist display style. 81 * @result Returns NO if the developer opt-ed out of Mist, the default value is YES. 82 */ 83 + (BOOL)shouldUseBuiltInNotifications; 59 84 60 85 #pragma mark - … … 324 349 * --- ----- 325 350 * <code>GROWL_APP_NAME</code> <code>CFBundleExecutableName</code> 326 * <code>GROWL_APP_ICON </code> The icon of the application.351 * <code>GROWL_APP_ICON_DATA</code> The data of the icon of the application. 327 352 * <code>GROWL_APP_LOCATION</code> The location of the application. 328 353 * <code>GROWL_NOTIFICATIONS_DEFAULT</code> <code>GROWL_NOTIFICATIONS_ALL</code> … … 345 370 * --- ----- 346 371 * <code>GROWL_APP_NAME</code> <code>CFBundleExecutableName</code> 347 * <code>GROWL_APP_ICON </code> The icon of the application.372 * <code>GROWL_APP_ICON_DATA</code> The data of the icon of the application. 348 373 * <code>GROWL_APP_LOCATION</code> The location of the application. 349 374 * <code>GROWL_NOTIFICATIONS_DEFAULT</code> <code>GROWL_NOTIFICATIONS_ALL</code> … … 369 394 * 370 395 * \li <code>GROWL_APP_NAME</code> 371 * \li <code>GROWL_APP_ICON </code>396 * \li <code>GROWL_APP_ICON_DATA</code> 372 397 * 373 398 * @since Growl.framework 1.1 … … 511 536 - (void) growlNotificationTimedOut:(id)clickContext; 512 537 538 539 /*! 540 * @method hasNetworkClientEntitlement 541 * @abstract Used only in sandboxed situations since we don't know whether the app has com.apple.security.network.client entitlement 542 * @discussion GrowlDelegate calls to find out if we have the com.apple.security.network.client entitlement, 543 * since we can't find this out without hitting the sandbox. We only call it if we detect that the application is sandboxed. 544 */ 545 - (BOOL) hasNetworkClientEntitlement; 546 513 547 @end 514 548 515 549 #pragma mark - 516 /*!517 * @category NSObject(GrowlApplicationBridgeDelegate_Installation_InformalProtocol)518 * @abstract Methods which may be optionally implemented by the Growl delegate when used with Growl-WithInstaller.framework.519 * @discussion The methods in this informal protocol will only be called if520 * implemented by the delegate. They allow greater control of the information521 * presented to the user when installing or upgrading Growl from within your522 * application when using Growl-WithInstaller.framework.523 */524 @interface NSObject (GrowlApplicationBridgeDelegate_Installation_InformalProtocol)525 526 /*!527 * @method growlInstallationWindowTitle528 * @abstract Return the title of the installation window.529 * @discussion If not implemented, Growl will use a default, localized title.530 * @result An NSString object to use as the title.531 */532 - (NSString *)growlInstallationWindowTitle;533 534 /*!535 * @method growlUpdateWindowTitle536 * @abstract Return the title of the upgrade window.537 * @discussion If not implemented, Growl will use a default, localized title.538 * @result An NSString object to use as the title.539 */540 - (NSString *)growlUpdateWindowTitle;541 542 /*!543 * @method growlInstallationInformation544 * @abstract Return the information to display when installing.545 * @discussion This information may be as long or short as desired (the window546 * will be sized to fit it). It will be displayed to the user as an547 * explanation of what Growl is and what it can do in your application. It548 * should probably note that no download is required to install.549 *550 * If this is not implemented, Growl will use a default, localized explanation.551 * @result An NSAttributedString object to display.552 */553 - (NSAttributedString *)growlInstallationInformation;554 555 /*!556 * @method growlUpdateInformation557 * @abstract Return the information to display when upgrading.558 * @discussion This information may be as long or short as desired (the window559 * will be sized to fit it). It will be displayed to the user as an560 * explanation that an updated version of Growl is included in your561 * application and no download is required.562 *563 * If this is not implemented, Growl will use a default, localized explanation.564 * @result An NSAttributedString object to display.565 */566 - (NSAttributedString *)growlUpdateInformation;567 568 @end569 570 //private571 @interface GrowlApplicationBridge (GrowlInstallationPrompt_private)572 + (void) _userChoseNotToInstallGrowl;573 @end574 550 575 551 #endif /* __GrowlApplicationBridge_h__ */ -
trunk/macosx/Growl.framework/Versions/A/Headers/GrowlDefines.h
r10123 r13071 8 8 #ifdef __OBJC__ 9 9 #define XSTR(x) (@x) 10 #define STRING_TYPE NSString *11 10 #else 12 11 #define XSTR CFSTR 13 #define STRING_TYPE CFStringRef14 12 #endif 15 13 … … 57 55 */ 58 56 #define GROWL_APP_ID XSTR("ApplicationId") 59 /*! @defined GROWL_APP_ICON 57 /*! @defined GROWL_APP_ICON_DATA 60 58 * @abstract The image data for your application's icon. 61 59 * @discussion Image data representing your application's icon. This may be … … 67 65 * Optional. Not supported by all display plugins. 68 66 */ 69 #define GROWL_APP_ICON 67 #define GROWL_APP_ICON_DATA XSTR("ApplicationIcon") 70 68 /*! @defined GROWL_NOTIFICATIONS_DEFAULT 71 69 * @abstract The array of notifications to turn on by default. … … 145 143 #define GROWL_NOTIFICATION_DESCRIPTION XSTR("NotificationDescription") 146 144 /*! @defined GROWL_NOTIFICATION_ICON 147 * @discussion Image data for the notification icon. Must be in a format145 * @discussion Image data for the notification icon. Image data must be in a format 148 146 * supported by NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. 149 147 * 150 148 * Optional. Not supported by all display plugins. 151 149 */ 152 #define GROWL_NOTIFICATION_ICON XSTR("NotificationIcon")150 #define GROWL_NOTIFICATION_ICON_DATA XSTR("NotificationIcon") 153 151 /*! @defined GROWL_NOTIFICATION_APP_ICON 154 152 * @discussion Image data for the application icon, in case GROWL_APP_ICON does 155 * not apply for some reason. Mustbe in a format supported by NSImage, such153 * not apply for some reason. Image data be in a format supported by NSImage, such 156 154 * as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. 157 155 * 158 156 * Optional. Not supported by all display plugins. 159 157 */ 160 #define GROWL_NOTIFICATION_APP_ICON XSTR("NotificationAppIcon")158 #define GROWL_NOTIFICATION_APP_ICON_DATA XSTR("NotificationAppIcon") 161 159 /*! @defined GROWL_NOTIFICATION_PRIORITY 162 160 * @discussion The priority of the notification as an integer number from … … 185 183 */ 186 184 #define GROWL_NOTIFICATION_CLICK_CONTEXT XSTR("NotificationClickContext") 187 188 /*! @defined GROWL_DISPLAY_PLUGIN189 * @discussion The name of a display plugin which should be used for this notification.190 * Optional. If this key is not set or the specified display plugin does not191 * exist, the display plugin stored in the application ticket is used. This key192 * allows applications to use different default display plugins for their193 * notifications. The user can still override those settings in the preference194 * pane.195 */196 #define GROWL_DISPLAY_PLUGIN XSTR("NotificationDisplayPlugin")197 185 198 186 /*! @defined GROWL_NOTIFICATION_IDENTIFIER … … 246 234 * <ul> 247 235 * <li>GROWL_APP_NAME</li> 248 * <li>GROWL_APP_ICON </li>236 * <li>GROWL_APP_ICON_DATA</li> 249 237 * <li>GROWL_NOTIFICATIONS_ALL</li> 250 238 * <li>GROWL_NOTIFICATIONS_DEFAULT</li> … … 289 277 */ 290 278 #define GROWL_NOTIFICATION XSTR("GrowlNotification") 291 /*! @defined GROWL_SHUTDOWN292 * @abstract The distributed notification name that tells Growl to shutdown.293 * @discussion The Growl preference pane posts this notification when the294 * "Stop Growl" button is clicked.295 */296 #define GROWL_SHUTDOWN XSTR("GrowlShutdown")297 279 /*! @defined GROWL_PING 298 280 * @abstract A distributed notification to check whether Growl is running. … … 314 296 */ 315 297 #define GROWL_IS_READY XSTR("Lend Me Some Sugar; I Am Your Neighbor!") 316 /*! @defined GROWL_NOTIFICATION_CLICKED 317 * @abstract The distributed notification sent when a supported notification is clicked. 298 299 300 /*! @defined GROWL_DISTRIBUTED_NOTIFICATION_CLICKED_SUFFIX 301 * @abstract Part of the name of the distributed notification sent when a supported notification is clicked. 318 302 * @discussion When a Growl notification with a click context is clicked on by 319 * the user, Growl posts this distributed notification. 320 * The GrowlApplicationBridge responds to this notification by calling a 321 * callback in its delegate. 322 */ 323 #define GROWL_NOTIFICATION_CLICKED XSTR("GrowlClicked!") 324 #define GROWL_NOTIFICATION_TIMED_OUT XSTR("GrowlTimedOut!") 303 * the user, Growl posts a distributed notification whose name is in the format: 304 * [NSString stringWithFormat:@"%@-%d-%@", appName, pid, GROWL_DISTRIBUTED_NOTIFICATION_CLICKED_SUFFIX] 305 * The GrowlApplicationBridge responds to this notification by calling a callback in its delegate. 306 */ 307 #define GROWL_DISTRIBUTED_NOTIFICATION_CLICKED_SUFFIX XSTR("GrowlClicked!") 308 309 /*! @defined GROWL_DISTRIBUTED_NOTIFICATION_TIMED_OUT_SUFFIX 310 * @abstract Part of the name of the distributed notification sent when a supported notification times out without being clicked. 311 * @discussion When a Growl notification with a click context times out, Growl posts a distributed notification 312 * whose name is in the format: 313 * [NSString stringWithFormat:@"%@-%d-%@", appName, pid, GROWL_DISTRIBUTED_NOTIFICATION_TIMED_OUT_SUFFIX] 314 * The GrowlApplicationBridge responds to this notification by calling a callback in its delegate. 315 * NOTE: The user may have actually clicked the 'close' button; this triggers an *immediate* time-out of the notification. 316 */ 317 #define GROWL_DISTRIBUTED_NOTIFICATION_TIMED_OUT_SUFFIX XSTR("GrowlTimedOut!") 325 318 326 319 /*! @group Other symbols */ -
trunk/macosx/Growl.framework/Versions/A/Resources/Info.plist
r12460 r13071 4 4 <dict> 5 5 <key>BuildMachineOSBuild</key> 6 <string>1 0J869</string>6 <string>11A511</string> 7 7 <key>CFBundleDevelopmentRegion</key> 8 8 <string>English</string> … … 16 16 <string>FMWK</string> 17 17 <key>CFBundleShortVersionString</key> 18 <string>1. 2.2</string>18 <string>1.3</string> 19 19 <key>CFBundleSignature</key> 20 20 <string>GRRR</string> 21 21 <key>CFBundleVersion</key> 22 <string>1. 2.2</string>22 <string>1.3</string> 23 23 <key>DTCompiler</key> 24 <string> 4.0</string>24 <string>com.apple.compilers.llvm.clang.1_0</string> 25 25 <key>DTPlatformBuild</key> 26 <string> 10M2518</string>26 <string>4D199</string> 27 27 <key>DTPlatformVersion</key> 28 <string> PG</string>28 <string>GM</string> 29 29 <key>DTSDKBuild</key> 30 <string> 9L31a</string>30 <string>11C63</string> 31 31 <key>DTSDKName</key> 32 <string>macosx10. 5</string>32 <string>macosx10.7</string> 33 33 <key>DTXcode</key> 34 <string>04 00</string>34 <string>0420</string> 35 35 <key>DTXcodeBuild</key> 36 <string> 10M2518</string>36 <string>4D199</string> 37 37 <key>NSPrincipalClass</key> 38 38 <string>GrowlApplicationBridge</string>
Note: See TracChangeset
for help on using the changeset viewer.