Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reduce size of app.rb code

  • Loading branch information...
commit 5f8d089a0015d8de4456a873b69dd855a3d82b59 1 parent 1002771
@drnic authored
Showing with 1 addition and 29 deletions.
  1. +1 −29 download_and_scrape_html/lib/application.rb
View
30 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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.