I write an application which runs in background.
My application is launched at login. (from LaunchAgents)

In Growl 1.2.1, registrationDictionaryForGrowl does not work property
if we call [GrowlApplicationBridge setGrowlDelegate] before Growl is
started.
And the notification is not displayed at all after Growl is started.

Steps to reproduce.

(1) Stop Growl.
(2) Remove the target application registration from "Growl Preferences
> Applications".
(3) Launch the target application. (Call setGrowlDelegate in the
application.)
(4) Start Growl.

After these procedures, the target application is not in "Growl
Preferences > Applications",
and the target application's notification is not displayed.

If the target application is background process and launched at login,
this state always continues, and a notification is not usable.

This issue is solved by calling [GrowlApplicationBridge
setWillRegisterWhenGrowlIsReady:YES] after
calling [GrowlApplicationBridge setGrowlDelegate].

I am glad if a comment about this issue is added at
GrowlApplicationBridge.h header file, or
changing Growl to call setWillRegisterWhenGrowlIsReady automatically
if the application is not registered.

------------------------------------------------------------
- (id) init
{
  self = [super init];
  if (self) {
    [GrowlApplicationBridge setGrowlDelegate:self];
    // We need to call setWillRegisterWhenGrowlIsReady:YES to prevent
the above problem.
    [GrowlApplicationBridge setWillRegisterWhenGrowlIsReady:YES];
  }
  return self;
}
------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"Growl Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/growldiscuss?hl=en.

Reply via email to