lib/sugarcube/notifications.rb in sugarcube-0.20.18 vs lib/sugarcube/notifications.rb in sugarcube-0.20.19
- old
+ new
@@ -1,4 +1,13 @@
+class NSNotification
+
+ def [](key)
+ userInfo[key]
+ end
+
+end
+
+
class NSString
def post_notification(object=nil, user_info=nil)
if user_info and not user_info.is_a? Hash
raise TypeError("Invalid argument #{user_info.class.name} sent to String.post_notification")