Module: HotCocoa
- Included in:
- HotCocoaApplication
- Defined in:
- lib/hotcocoa.rb,
lib/hotcocoa/version.rb,
lib/hotcocoa/layout_view.rb,
lib/hotcocoa/delegate_builder.rb,
lib/hotcocoa/mappings/appkit/segmented_control.rb
Overview
HotCocoa is a Cocoa mapping library for MacRuby. It simplifies the use of complex Cocoa classes using DSL techniques.
Defined Under Namespace
Modules: Behaviors, MappingMethods, Mappings Classes: DelegateBuilder, DelegateMethodBuilder, LayoutOptions, LayoutView, NSRangedProxyAttributeHash, NSRangedProxyAttributedString, NotificationListener, SegmentedControlSegment, Template
Constant Summary
- VERSION =
'0.7.0'
Class Method Summary (collapse)
-
+ (HotCocoa::NotificationListener) on_notification(options = {}, &block)
Register for a notification given a block.
Class Method Details
+ (HotCocoa::NotificationListener) on_notification(options = {}, &block)
Register for a notification given a block. The options and block given here will be passed to HotCocoa::NotificationListener#initialize; this method is merely syntactic sugar.
148 149 150 |
# File 'lib/hotcocoa/notification_listener.rb', line 148 def HotCocoa.on_notification = {}, &block HotCocoa::NotificationListener.new(, &block) end |