[ANN]GrowlNotifier 1.0.1

S

Satoshi Nakagawa

Growl Notifier 1.0.1 has been released.

http://rubyforge.org/projects/growlnotifier/
http://growlnotifier.rubyforge.org/

Growl Notifier allows your application to post Growl notifications.
It can then receive clicked and timed out notifications from Growl.
Or you can give it a block, which will then be used as a clicked callback.

It is an extraction and clean up of the Growl code from LimeChat.
The option to pass procs is extracted from WebApp.

LimeChat:
http://github.com/psychs/limechat/tree/master

WebApp:
http://github.com/alloy/webapp-app/tree/master

== Installation

gem install growlnotifier

== Requirements

* Mac OS X 10.4 or 10.5
* Ruby 1.8
* RubyCocoa 0.13.1

== Example

require 'rubygems'
require 'growl'

class GrowlController < OSX::NSObject
HELLO_TYPE = 'Hello message received'

def init
if super_init
@g = Growl::Notifier.sharedInstance
@g.delegate = self
@g.register('GrowlSample', [HELLO_TYPE])
@g.notify(HELLO_TYPE, 'Sticky', 'Hello world',
:sticky => true, :click_context => Time.now.to_s )
@g.notify(HELLO_TYPE, 'Timed out', 'Hello world',
:click_context => Time.now.to_s )
@Count = 2
self
end
end

def growlNotifierClicked_context(sender, context)
puts "Clicked: #{context}"
checkCount
end

def growlNotifierTimedOut_context(sender, context)
puts "Timed out: #{context}"
checkCount
end

def checkCount
@Count -= 1
OSX::NSApp.terminate(nil) if @Count == 0
end
end

g = GrowlController.alloc.init
OSX::NSApp.run
 
T

Tim Pease

Growl Notifier 1.0.1 has been released.

http://rubyforge.org/projects/growlnotifier/
http://growlnotifier.rubyforge.org/

Growl Notifier allows your application to post Growl notifications.
It can then receive clicked and timed out notifications from Growl.
Or you can give it a block, which will then be used as a clicked
callback.

It is an extraction and clean up of the Growl code from LimeChat.
The option to pass procs is extracted from WebApp.

How does this compare to meow ?

http://rubyforge.org/projects/meow


Blessings,
TwP
 
E

Eloy Duran

How does this compare to meow ?

Hi Tim,

At some point we decided we wanted to extract this code as a separate
lib and gem.
During this process we discovered the Meow lib. But after studying the
source, at that point in time, we decided to go ahead anyway. Because
our code was more mature and with better test coverage etc.

We have however not compared them at this point in time, so if you do
please let us know :)

Cheers,
Eloy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top