[macruby-changes] [609] MacRuby/trunk/lib/hotcocoa/mappings/notification.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 19 17:08:16 PDT 2008


Revision: 609
          http://trac.macosforge.org/projects/ruby/changeset/609
Author:   lsansonetti at apple.com
Date:     2008-09-19 17:08:16 -0700 (Fri, 19 Sep 2008)
Log Message:
-----------
fix typos

Modified Paths:
--------------
    MacRuby/trunk/lib/hotcocoa/mappings/notification.rb

Modified: MacRuby/trunk/lib/hotcocoa/mappings/notification.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/notification.rb	2008-09-19 13:14:55 UTC (rev 608)
+++ MacRuby/trunk/lib/hotcocoa/mappings/notification.rb	2008-09-20 00:08:16 UTC (rev 609)
@@ -5,12 +5,12 @@
   def alloc_with_options(options)
     if options.delete(:post)
       if options.delete(:distributed)
-        NSDistributedNotificationCenter.defaultCenter.postNotificationWithName options.delete(:name), object:options.delete(:object), userInfo:options.delete(:info), deliverImmediately:(options.delete(:immediately) == true)
+        NSDistributedNotificationCenter.defaultCenter.postNotificationName options.delete(:name), object:options.delete(:object), userInfo:options.delete(:info), deliverImmediately:(options.delete(:immediately) == true)
       else
-        NSNotificationCenter.defaultCenter.postNotificationWithName options.delete(:name), object:options.delete(:object), userInfo:options.delete(:info)
+        NSNotificationCenter.defaultCenter.postNotificationName options.delete(:name), object:options.delete(:object), userInfo:options.delete(:info)
       end
     else
-      NSNotification.notificationWithName options.delete(:name), object:options.delete(:object), userInfo:options.delete(:info)
+      NSNotification.notificationName options.delete(:name), object:options.delete(:object), userInfo:options.delete(:info)
     end
   end
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080919/326e3c68/attachment.html 


More information about the macruby-changes mailing list