Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't commit .app folders

  • Loading branch information...
commit 100277131a9f9101056e2d26ac06436cc92c2a4c 1 parent 3dde29c
@drnic authored
View
1  .gitignore
@@ -0,0 +1 @@
+*.app
View
26 download_and_scrape_html/Download And Scrape Html.app/Contents/Info.plist
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleIconFile</key>
- <string>Download And Scrape Html.icns</string>
- <key>CFBundleExecutable</key>
- <string>DownloadAndScrapeHtml</string>
- <key>CFBundleIdentifier</key>
- <string>com.yourcompany.Download And Scrape Html</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>Download And Scrape Html</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1.0</string>
- <key>NSPrincipalClass</key>
- <string>NSApplication</string>
-</dict>
-</plist>
View
BIN  download_and_scrape_html/Download And Scrape Html.app/Contents/MacOS/DownloadAndScrapeHtml
Binary file not shown
View
1  download_and_scrape_html/Download And Scrape Html.app/Contents/PkgInfo
@@ -1 +0,0 @@
-APPL????
View
BIN  ...scrape_html/Download And Scrape Html.app/Contents/Resources/Download And Scrape Html.icns
Binary file not shown
View
BIN  download_and_scrape_html/Download And Scrape Html.app/Contents/Resources/HotCocoa.icns
Binary file not shown
View
59 download_and_scrape_html/Download And Scrape Html.app/Contents/Resources/lib/application.rb
@@ -1,59 +0,0 @@
-require 'hotcocoa'
-
-# Replace the following code with your own hotcocoa code
-
-class Application
-
- include HotCocoa
-
- def start
- application :name => "Download And Scrape Html" do |app|
- app.delegate = self
- window :frame => [100, 100, 500, 500], :title => "Download And Scrape Html" do |win|
- win << label(:text => "Hello from HotCocoa", :layout => {:start => false})
- win << (@didReceiveResponse = label(:text => "...", :layout => {:start => false}, :frame => [0, 0, 300, 20]))
- win << (@didReceiveData = label(:text => "...", :layout => {:start => false}, :frame => [0, 0, 300, 20]))
- url = NSURL.URLWithString("http://github.com/drnic")
- request = NSURLRequest.requestWithURL(url)
- NSURLConnection.connectionWithRequest(request, delegate: self)
- win.will_close { exit }
- end
- end
- end
-
-
- def connection(connection, didReceiveResponse:didReceiveResponse)
- @didReceiveResponse.text = "connection_didReceiveResponse"
- end
-
- 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
View
32 download_and_scrape_html/Download And Scrape Html.app/Contents/Resources/lib/menu.rb
@@ -1,32 +0,0 @@
-module HotCocoa
- def application_menu
- menu do |main|
- main.submenu :apple do |apple|
- apple.item :about, :title => "About #{NSApp.name}"
- apple.separator
- apple.item :preferences, :key => ","
- apple.separator
- apple.submenu :services
- apple.separator
- apple.item :hide, :title => "Hide #{NSApp.name}", :key => "h"
- apple.item :hide_others, :title => "Hide Others", :key => "h", :modifiers => [:command, :alt]
- apple.item :show_all, :title => "Show All"
- apple.separator
- apple.item :quit, :title => "Quit #{NSApp.name}", :key => "q"
- end
- main.submenu :file do |file|
- file.item :new, :key => "n"
- file.item :open, :key => "o"
- end
- main.submenu :window do |win|
- win.item :minimize, :key => "m"
- win.item :zoom
- win.separator
- win.item :bring_all_to_front, :title => "Bring All to Front", :key => "o"
- end
- main.submenu :help do |help|
- help.item :help, :title => "#{NSApp.name} Help"
- end
- end
- end
-end
View
2  download_and_scrape_html/Download And Scrape Html.app/Contents/Resources/rb_main.rb
@@ -1,2 +0,0 @@
-$:.unshift NSBundle.mainBundle.resourcePath.fileSystemRepresentation
-load 'lib/application.rb'
Please sign in to comment.
Something went wrong with that request. Please try again.