Ruby binding

The Growl forums have moved to Google Groups, this forum is read only.
Locked
Psychs
Harmless
Posts: 4
Joined: Tue Dec 18, 2007 11:55 am
Location: Tokyo, Japan
Contact:

Ruby binding

Post 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?
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

Timeout callbacks?
Psychs
Harmless
Posts: 4
Joined: Tue Dec 18, 2007 11:55 am
Location: Tokyo, Japan
Contact:

Post by Psychs »

Yes.
It can handle a timed out event from Growl.
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

Explain what exactly that is, because growl doesn't have a concept of a timeout event.
Psychs
Harmless
Posts: 4
Joined: Tue Dec 18, 2007 11:55 am
Location: Tokyo, Japan
Contact:

Post 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!".
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

it's preferable to use DO rather than NSDNC, you know that right?
Psychs
Harmless
Posts: 4
Joined: Tue Dec 18, 2007 11:55 am
Location: Tokyo, Japan
Contact:

Post by Psychs »

Oh really?
I'll investigate it.
Thanks for the information.
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post 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.
marick
Harmless
Posts: 1
Joined: Tue Dec 18, 2007 4:56 pm

Post by marick »

The existing Ruby binding also uses NSDNC, so this new code is no worse on that dimension and better on others.
IngmarStein
Latté
Posts: 63
Joined: Fri Dec 03, 2004 5:35 pm

Post 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.
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post 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.
Locked