Skip to content

Instantly share code, notes, and snippets.

@danlucraft
Created April 24, 2010 21:17
Show Gist options
  • Save danlucraft/377952 to your computer and use it in GitHub Desktop.
Save danlucraft/377952 to your computer and use it in GitHub Desktop.
def connect_proc_to_item(item, entry)
if use_numbers? and Redcar.platform == :osx
item.text = entry.text + "\t" + @number.to_s
@number += 1
else
item.text = entry.text
end
item.addSelectionListener(ProcSelectionListener.new(entry))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment