On Aug 31, 2008, at 21:22:52, Dustin wrote:
> This may be a strange case, but I'm developing a plugin for iPhoto  
> that uses Growl. There are several iPhoto plugins that use Growl,  
> and this seems to confuse Growl.

Happen to know what they are? I'd like to add them to the Applications  
list.

> For example, inside the Growl prefpane the notification names that  
> were registered for my plugin will show up in the list of  
> notification for a different iPhoto plugin. When my plugin posts  
> notifications, it sometimes also uses the icon for the other iPhoto  
> plugin. Is this a Growl bug or something I'm doing wrong?

No, no bug and nothing you're doing wrong.

First off, each process can only have one of each Objective-C class.  
So, when you try to load GrowlApplicationBridge from your  
Growl.framework and another plug-in tries to load it from its  
Growl.framework, one of them wins and one of them loses. This doesn't  
cause any serious breakage, but it does mean that you could end up  
using an older GAB than you expect to (if some other plug-in is using  
an old framework).

Second, Growl assumes that there is One True Registration Dictionary  
for the app, including all its notification names. Furthermore, the  
GrowlApplicationBridge is designed for exactly one delegate, so when  
one plug-in sets itself as delegate and you set yourself as delegate,  
one of you wins and one of you loses. Only one delegate gets  
represented in Growl's Applications list unless they use different app  
names (as you said they do), and only one delegate gets click feedback.

Honestly, I think AppleScript would be more advisable in your  
situation. If you require Leopard, you can use the Scripting Bridge to  
ease the pain.

> I was going to clear the Growl preferences to see if maybe that  
> would help, but I couldn't find the preferences file...

It won't.

If it would have, the things to delete would have been  
com.growl.growlhelperapp.plist and ~/Library/Application Support/Growl/ 
Tickets—but it won't.


--~--~---------~--~----~------------~-------~--~----~
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