Class: NSNotification

Inherits:
Object show all
Defined in:
lib/cocoa/sugarcube-to_s/nsnotification.rb,
lib/cocoa/sugarcube-notifications/notifications.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



3
4
5
# File 'lib/cocoa/sugarcube-notifications/notifications.rb', line 3

def [](key)
  userInfo && userInfo[key]
end

#inspectObject



7
8
9
10
11
12
# File 'lib/cocoa/sugarcube-to_s/nsnotification.rb', line 7

def inspect
  "#<#{self.class.to_s}:0x#{self.object_id.to_s(16)}, "+
    "name=#{self.name.inspect}, object=#{object.inspect}, "+
    "userInfo=#{userInfo.inspect}"+
   ">"
end

#to_sObject



3
4
5
# File 'lib/cocoa/sugarcube-to_s/nsnotification.rb', line 3

def to_s
  name
end