Socket
Book a DemoInstallSign in
Socket

dmathieu-growlcocoa

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmathieu-growlcocoa

1.0.0
bundlerRubygems
Version published
Maintainers
2
Created
Source

h1. Growl Notifier

Copyright (c) 2007-2008 Satoshi Nakagawa psychs@limechat.net Exported as a gem by Damien MATHIEU 42@dmathieu.com You can redistribute it and/or modify it under the same terms as Ruby.

h2. Overview

Growl Notifier is a class to post notifications to the Growl daemon. And also it can receive clicked and timeout notifications from Growl.

h2. Requirements

Mac OS X 10.4 or 10.5 Ruby 1.8 (http://ruby-lang.org/) RubyCocoa (http://rubycocoa.sourceforge.net/)

h2. How to install

The Growl Notifier is a gem. So to install it, you only need to do :

gem sources -a http://gems.github.com sudo gem install dmathieu-growlcocoa

And you're ready to go :)

h2. How to use Growl Notifier

A simple example:

require 'growl'

g = Growl::Notifier.alloc.init
g.start('test_app', ['message_type'])
g.notify('message_type', 'title', 'desc')

How to receive clicked and timeout notifications in your application:

require 'growl'

class GrowlController < OSX::NSObject def init @g = Growl::Notifier.alloc.initWithDelegate(self) @g.start('test_app', ['message_type']) @g.notify('message_type', 'title', 'desc', 'click_context') self end

def growl_onClicked(sender, context)
    puts 'clicked'
end
def growl_onTimeout(sender, context)
    puts 'timeout'
end

end

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.