Growl integration quick guide - hewigovens/hewigovens.github.com GitHub Wiki
- Download and unzip sdk from Growl.info, Current version is Growl-2.0.1
- Add Xcode build phase, copy
Growl.framework
to app's Framework folder
- Link to
Growl.framework
- Your controller or AppDelegate:
#import <Growl/Growl.h>
, implement protocol GrowlApplicationBridgeDelegate
- call [GrowlApplicationBridge setGrowlDelegate:self];
- implement method
registrationDictionaryForGrowl
:
-(NSDictionary *)registrationDictionaryForGrowl
{
return @{
GROWL_NOTIFICATIONS_ALL:@[@"im.kernelpanic.DesktopNotification"],
GROWL_NOTIFICATIONS_DEFAULT:@[@"im.kernelpanic.DesktopNotification"]
};
}
- call [GrowlApplicationBridge notifyWithTitle...] to send notifications