[macruby-changes] [626] MacRuby/trunk/sample-macruby/GrowlNotifier/hotcocoa_growl.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 26 17:27:04 PDT 2008


Revision: 626
          http://trac.macosforge.org/projects/ruby/changeset/626
Author:   psychs at limechat.net
Date:     2008-09-26 17:27:04 -0700 (Fri, 26 Sep 2008)
Log Message:
-----------
tweaked

Modified Paths:
--------------
    MacRuby/trunk/sample-macruby/GrowlNotifier/hotcocoa_growl.rb

Modified: MacRuby/trunk/sample-macruby/GrowlNotifier/hotcocoa_growl.rb
===================================================================
--- MacRuby/trunk/sample-macruby/GrowlNotifier/hotcocoa_growl.rb	2008-09-27 00:25:29 UTC (rev 625)
+++ MacRuby/trunk/sample-macruby/GrowlNotifier/hotcocoa_growl.rb	2008-09-27 00:27:04 UTC (rev 626)
@@ -31,7 +31,7 @@
       :NotificationDescription => desc,
       :NotificationPriority => PRIORITIES[options[:priority]] || options[:priority] || 0,
       :ApplicationName => @app_name,
-      :ApplicationPID => self.class.pid,
+      :ApplicationPID => pid,
     }
     dic[:NotificationIcon] = options[:icon].TIFFRepresentation if options[:icon]
     dic[:NotificationSticky] = 1 if options[:sticky]
@@ -45,7 +45,7 @@
   
   private
   
-  def self.pid
+  def pid
     NSProcessInfo.processInfo.processIdentifier.to_i
   end
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080926/edef6a4d/attachment-0001.html 


More information about the macruby-changes mailing list