On 15 Dec, 22:27, John J. [email protected]
on OS X growl does use native APIs!
Cocoa does have this stuff available. It’s just a PITA to dig through
the cocoa docs.
Assuming that the OP is wanting to trigger user notifications from
their wx app as opposed to writing a Growl-clone in wx (I wasn’t sure
from their post), using existing native notifier systems such as Growl
seems the reasonable way to go.
Growl developer docs are here:
It sounds like a Ruby binding is included, although it’s not something
I’ve any experience with myself.
A quick Google also turns up the following, which appears to let you
trigger Growl from Ruby scripts running on non-Macs.
that means, however, you can access it with RubyCocoa… maybe even appscript-rb or rubyosa
IIRC, RubyOSA barfs on GrowlHelperApp’s dictionary (it’s a bit finicky
that way). Rb-appscript or (if you don’t want the additional
dependency) embedded AppleScripts executed via
osascript ... should
work okay though. (Can’t recall if you can also trigger it directly
from the command line or not.) No idea though if this would have any
advantages over using Growl’s existing Ruby bindings or not.