Modified: MacRuby/trunk/lib/hotcocoa/notification_listener.rb (607 => 608)
--- MacRuby/trunk/lib/hotcocoa/notification_listener.rb 2008-09-19 13:04:38 UTC (rev 607)
+++ MacRuby/trunk/lib/hotcocoa/notification_listener.rb 2008-09-19 13:14:55 UTC (rev 608)
@@ -3,10 +3,10 @@
class NotificationListener
DistributedBehaviors = {
- :drop => NSNotificationSuspensionBehaviorDrop,
- :coalese => NSNotificationSuspensionBehaviorCoalesce,
- :hold => NSNotificationSuspensionBehaviorHold,
- :deliver_immediately => NSNotificationSuspensionBehaviorDeliverImmediately
+ :drop => NSNotificationSuspensionBehaviorDrop,
+ :coalesce => NSNotificationSuspensionBehaviorCoalesce,
+ :hold => NSNotificationSuspensionBehaviorHold,
+ :deliver_immediately => NSNotificationSuspensionBehaviorDeliverImmediately
}
attr_reader :callback, :name, :sender, :suspension_behavior
@@ -14,7 +14,7 @@
def initialize(options={}, &block)
@callback = block
@distributed = (options[:distributed] == true)
- @suspension_behavior = DistributedBehaviors[options[:when_suspended] || :coalese]
+ @suspension_behavior = DistributedBehaviors[options[:when_suspended] || :coalesce]
@name = options[:named]
@sender = options[:sent_by]
observe