Page 1 of 1
Ruby binding
Posted: Tue Dec 18, 2007 12:25 pm
by Psychs
Hi,
I wrote another Ruby binding for Growl.
http://limechat.net/rubycocoa/growl.rb
It has all functions the current binding provides.
And the good point is it can handle clicked and timeout callbacks.
Some people seems to need it.
http://www.exampler.com/blog/2007/12/17 ... -callbacks
Would you consider to bundle it with Growl?
Posted: Tue Dec 18, 2007 4:16 pm
by The_Tick
Timeout callbacks?
Posted: Tue Dec 18, 2007 4:23 pm
by Psychs
Yes.
It can handle a timed out event from Growl.
Posted: Tue Dec 18, 2007 4:37 pm
by The_Tick
Explain what exactly that is, because growl doesn't have a concept of a timeout event.
Posted: Tue Dec 18, 2007 4:44 pm
by Psychs
After a notification pop up faded out, Growl would throw a timed out event to the NSDistributedNotificationCenter actually. The notification name is "appname-pid-GrowlTimedOut!".
Posted: Tue Dec 18, 2007 4:47 pm
by The_Tick
it's preferable to use DO rather than NSDNC, you know that right?
Posted: Tue Dec 18, 2007 4:55 pm
by Psychs
Oh really?
I'll investigate it.
Thanks for the information.
Posted: Tue Dec 18, 2007 5:11 pm
by The_Tick
The timeout isn't anything we do anything with in the nsdnc stuff. I think it's just a vestige of 4 years ago for when gha needed to notify itself that a clickback had timed out, but I'm not positive on that.
Posted: Tue Dec 18, 2007 6:17 pm
by marick
The existing Ruby binding also uses NSDNC, so this new code is no worse on that dimension and better on others.
Posted: Tue Dec 18, 2007 8:14 pm
by IngmarStein
Actually, the timeout notification has been introduced at the same time as the click notification. That way, an application will always receive feedback from Growl whether a notification has been clicked or not.
Posted: Tue Dec 18, 2007 8:17 pm
by The_Tick
IngmarStein wrote:Actually, the timeout notification has been introduced at the same time as the click notification. That way, an application will always receive feedback from Growl whether a notification has been clicked or not.
Ya, but we don't use it anywhere do we? People have been asking us to actually timeout a sticky notification for a while and make it disappear, which is where I thought he was going at first with timeout.