Class: Nitron::UI::OutletBinder

Inherits:
Object
  • Object
show all
Defined in:
lib/nitron/ui/outlet_binder.rb

Instance Method Summary collapse

Instance Method Details

#bind(controller, view) ⇒ Object



4
5
6
7
8
9
# File 'lib/nitron/ui/outlet_binder.rb', line 4

def bind(controller, view)
  # Emulate IB's outlets by using KVC.
  view.outlets.each do |outlet, subview|
    controller.setValue(subview, forKey:outlet)
  end
end