[macruby-changes] [3900] MacRuby/trunk/sample-macruby/Scripts/notify_post.rb

source_changes at macosforge.org source_changes at macosforge.org
Thu Apr 1 14:58:40 PDT 2010


Revision: 3900
          http://trac.macosforge.org/projects/ruby/changeset/3900
Author:   lsansonetti at apple.com
Date:     2010-04-01 14:58:39 -0700 (Thu, 01 Apr 2010)
Log Message:
-----------
adding notify_post.rb sample

Added Paths:
-----------
    MacRuby/trunk/sample-macruby/Scripts/notify_post.rb

Added: MacRuby/trunk/sample-macruby/Scripts/notify_post.rb
===================================================================
--- MacRuby/trunk/sample-macruby/Scripts/notify_post.rb	                        (rev 0)
+++ MacRuby/trunk/sample-macruby/Scripts/notify_post.rb	2010-04-01 21:58:39 UTC (rev 3900)
@@ -0,0 +1,6 @@
+# This example sends a BSD notification using notify_post(3) for each
+# given argument.
+
+load_bridge_support_file '/System/Library/BridgeSupport/libSystem.bridgesupport'
+
+ARGV.each { |x| notify_post(x) }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100401/08f2b549/attachment.html>


More information about the macruby-changes mailing list