Yes. Witness growlnotify.
> I tried the following code, it runs without an error or warning,
> but no message is showed.
That's because you did not create and set a delegate.
By the way, you also leak most of your CF objects here.
You don't need the website. growlnotify is on the same disk image
with Growl, in the Extras folder.
> [the code]
Well, first off, I recommend releasing allNotifications immediately
after calling CFDictionaryCreate. Your current location of that
CFRelease confused me a little. It may just be me, though.
As far as posting a notification: It works for me.
> BTW: If a delegate is not present, there must be some warning like:
>
> GrowlApplicationBridge: Growl_PostNotification called, but no
> delegate is in effect to supply an application name - either set a
> delegate, or use Growl_PostNotificationWithDictionary instead
Or, how about:
Delegate did not supply a registration dictionary, and the app
bundle at %@ does not have one
That's what the existing warning says.
On Thu, 3 Jan 2008, Peter Hosey wrote:
> You don't need the website. growlnotify is on the same disk image
> with Growl, in the Extras folder.
I see.
> Well, first off, I recommend releasing allNotifications immediately
> after calling CFDictionaryCreate. Your current location of that
> CFRelease confused me a little. It may just be me, though.
Agreed.
> As far as posting a notification: It works for me.
It's weird, when I tried several times before, Growl *is* running but no
notifications showed, just after I restarted Growl, it works. Anyway,
thanks for you clarification, though I'm still not sure why it acted like
this.
- Jiang