Snarl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Snarl

Tony Garnock-Jones-2
I've just uploaded Snarl, a Growl-like notification library for Squeak,
to Squeaksource:

        http://www.squeaksource.com/Snarl.html

To use it,

        Snarl label: 'Something important happened'
                body: 'What could it have been?'

I've recorded a quick demo and put it on youtube:

        http://www.youtube.com/watch?v=xg-XJ0zvZAg

(It's pretty blurry, so I've uploaded it to vimeo too, but it's still in
the queue for conversion; when it's converted, it'll be at
http://vimeo.com/8366252.)

Cheers,
  Tony

Reply | Threaded
Open this post in threaded view
|

Re: Snarl

Ralph Johnson
What are the benefits over the standard (and much criticised) way of
implementing notification using #update: ?
Over other proposed replacements that are starting to gain traction in
Squeak, like Accouncements?

Videos are fine, but a lot of us much prefer text when it comes to
documentation.  Putting those examples on the Squeaksource wiki would
be helpful for people like us.

On Thu, Dec 24, 2009 at 3:44 AM, Tony Garnock-Jones <[hidden email]> wrote:

> I've just uploaded Snarl, a Growl-like notification library for Squeak,
> to Squeaksource:
>
>        http://www.squeaksource.com/Snarl.html
>
> To use it,
>
>        Snarl label: 'Something important happened'
>                body: 'What could it have been?'
>
> I've recorded a quick demo and put it on youtube:
>
>        http://www.youtube.com/watch?v=xg-XJ0zvZAg
>
> (It's pretty blurry, so I've uploaded it to vimeo too, but it's still in
> the queue for conversion; when it's converted, it'll be at
> http://vimeo.com/8366252.)
>
> Cheers,
>  Tony
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Snarl

Tony Garnock-Jones-2
Hi Ralph,

Ralph Johnson wrote:
> What are the benefits over the standard (and much criticised) way of
> implementing notification using #update: ?

It's not an observer-observable framework for programmatic use; it's
user interface. It's based on what I've observed Growl doing under OS X.
Invoking body:, label:, or label:body: on class Snarl causes a UI widget
to appear and then fade away. It's a bit like Object>>notify:, but not
modal and not focus-stealing.

If you've not seen Growl before, see http://growl.info/about.php.

> Videos are fine, but a lot of us much prefer text when it comes to
> documentation.  Putting those examples on the Squeaksource wiki would
> be helpful for people like us.

The examples and documentation are in the class comment for class Snarl.
Thanks for pointing out the Squeaksource wiki: I've copied the bulk of
the class comment into there, as well.

Regards,
  Tony