Module: HotCocoa

Included in:
HotCocoaApplication
Defined in:
lib/hotcocoa.rb,
lib/hotcocoa/version.rb,
lib/hotcocoa/graphics.rb,
lib/hotcocoa/layout_view.rb,
lib/hotcocoa/delegate_builder.rb,
lib/hotcocoa/application_builder.rb,
lib/hotcocoa/mappings/appkit/popup.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, Graphics, MappingMethods, Mappings Classes: ApplicationBuilder, ComboBoxDataSource, DelegateBuilder, DelegateMethodBuilder, LayoutOptions, LayoutView, NSRangedProxyAttributeHash, NSRangedProxyAttributedString, NotificationListener, OutlineViewDataSource, PopUpItemList, PopUpMenuItemList, SegmentedControlSegment, TableDataSource, Template

Constant Summary collapse

VERSION =
'0.6.3'
Behaviours =

Alias for HotCocoa::Behaviors

Returns:

  • (Module)
HotCocoa::Behaviors

Class Method Summary collapse

Class Method Details

.on_notification(options = {}, &block) ⇒ HotCocoa::NotificationListener

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.

Returns:



148
149
150
# File 'lib/hotcocoa/notification_listener.rb', line 148

def HotCocoa.on_notification options = {}, &block
  HotCocoa::NotificationListener.new(options, &block)
end