Re: trying to add Growl support
Re: trying to add Growl support
- Subject: Re: trying to add Growl support
- From: Tito Ciuro <email@hidden>
- Date: Tue, 4 Apr 2006 11:02:27 -0700
Hi Matt,
On 04/04/2006, at 10:34, Cameron Hayne wrote:
On 4-Apr-06, at 12:37 PM, Matt Neuburg wrote:
I'm trying to add Growl support to my MemoryStick app.
This is what I did:
1) Add the framework to your project. Then, add something like this:
- (void)awakeFromNib
{
[GrowlApplicationBridge setGrowlDelegate:self];
[GrowlApplicationBridge notifyWithTitle:[self
applicationNameForGrowl]
description:@"Just a test..."
notificationName:SampleNotificationName
iconData: nil
priority:0
isSticky:NO
clickContext:nil];
}
- (NSDictionary *) registrationDictionaryForGrowl {
NSArray *notifications = [NSArray arrayWithObjects:
SampleNotificationName, nil];
NSDictionary *regDict = [NSDictionary dictionaryWithObjectsAndKeys:
[self applicationNameForGrowl], GROWL_APP_NAME,
notifications, GROWL_NOTIFICATIONS_ALL,
notifications, GROWL_NOTIFICATIONS_DEFAULT,
nil];
return regDict;
}
- (NSString *) applicationNameForGrowl
{
return @"MemoryStick";
}
Regards,
-- Tito
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden