[3900] MacRuby/trunk/sample-macruby/Scripts/notify_post.rb
Revision: 3900 http://trac.macosforge.org/projects/ruby/changeset/3900 Author: lsansonetti@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) }
participants (1)
-
source_changes@macosforge.org