Skip to content

Commit

Permalink
reduce size of app.rb code
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Dec 23, 2008
1 parent 1002771 commit 5f8d089
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions download_and_scrape_html/lib/application.rb
@@ -1,11 +1,8 @@
require 'hotcocoa'

# Replace the following code with your own hotcocoa code
include HotCocoa

class Application

include HotCocoa

def start
application :name => "Download And Scrape Html" do |app|
app.delegate = self
Expand All @@ -29,31 +26,6 @@ def connection(connection, didReceiveResponse:didReceiveResponse)
def connection(connection, didReceiveData:didReceiveData)
@didReceiveData.text = "connection_didReceiveData"
end


# file/open
def on_open(menu)
end

# file/new
def on_new(menu)
end

# help menu item
def on_help(menu)
end

# This is commented out, so the minimize menu item is disabled
#def on_minimize(menu)
#end

# window/zoom
def on_zoom(menu)
end

# window/bring_all_to_front
def on_bring_all_to_front(menu)
end
end

Application.new.start

0 comments on commit 5f8d089

Please sign in to comment.