• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: trying to add Growl support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >trying to add Growl support (From: Matt Neuburg <email@hidden>)
 >Re: trying to add Growl support (From: Cameron Hayne <email@hidden>)

  • Prev by Date: UI Opinions, etc
  • Next by Date: Re: trying to add Growl support
  • Previous by thread: Re: trying to add Growl support
  • Next by thread: Re: trying to add Growl support
  • Index(es):
    • Date
    • Thread