lib/bean/nsoutlineview_additions.rb
#
# Helper for adding a click handler to the outline
#
# The block will be called and provided the sender, clicked column and clicked row
#
# @param blk [Proc] The block to execute
# @return [Nil]
Helper for adding a click handler to the outline
The block will be called and provided the sender, clicked column and clicked row
Helper for adding a click handler to the outline The block will be called and provided the sender clicked column and clicked row
def on_click(&blk)
    @on_action = blk
    def self.performAction(sender); @on_action.call(sender, self.clickedColumn, self.clickedRow); end
    setAction("performAction:")
  end
def on_click ( & blk ) @on_action = blk def self . performAction ( sender ) ; @on_action . call ( sender , self . clickedColumn , self . clickedRow ) ; end setAction ( "performAction:" ) end
Helper for adding a click handler to the outline
The block will be called and provided the sender, clicked column and clicked row
Helper for adding a click handler to the outline The block will be called and provided the sender clicked column and clicked row
None
Nil
blk
The block to execute
The block to execute