Skip to content

Commit

Permalink
Fixes #19 LSOpenURLFromSpec and the gazillion duplicate versions of t…
Browse files Browse the repository at this point in the history
…hat ticket. yay

"
  • Loading branch information
Justin Palmer committed Aug 6, 2008
1 parent 8f40c3e commit 1c29dfa
Show file tree
Hide file tree
Showing 5 changed files with 408 additions and 8 deletions.
3 changes: 2 additions & 1 deletion ApplicationController.rb
Expand Up @@ -10,7 +10,8 @@
require 'pathname'
require 'osx/cocoa'
libdir = OSX::NSBundle.mainBundle.resourcePath.stringByAppendingPathComponent("lib").fileSystemRepresentation
$:.unshift(libdir, "#{libdir}/grit/lib", "#{libdir}/mime-types/lib")
puts "LIB DIR:#{libdir}"
$:.unshift(libdir, "#{libdir}/grit/lib", "#{libdir}/mime-types/lib", "#{libdir}/open4/lib")
require 'grit'
require 'time_extensions'
require 'string_extensions'
Expand Down
7 changes: 6 additions & 1 deletion CommitsController.rb
Expand Up @@ -117,12 +117,17 @@ def webView_didFinishLoadForFrame(view, frame)
end

def webView_contextMenuItemsForElement_defaultMenuItems(view, element, defaultMenuItems)
defaultMenuItems.select do |item|
items = defaultMenuItems.select do |item|
# WebMenuItemTagCopy = 8
# WebMenuItemTagCut = 13
# WebMenuItemTagPaste = 14
[8, 13, 14].include? item.tag
end
items << NSMenuItem.alloc.initWithTitle_action_keyEquivalent("Blame", :foo_bar, "")
end

def foo_bar(sender)
puts "FOO"
end

def imageLoadForURL_didFinishLoading(url, image)
Expand Down
2 changes: 1 addition & 1 deletion GitNub.xcodeproj/project.pbxproj
Expand Up @@ -77,7 +77,7 @@
29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
4D922CA60D8889DB002A5539 /* CommitSummaryCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommitSummaryCell.h; sourceTree = "<group>"; };
4D922CA70D8889DB002A5539 /* CommitSummaryCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CommitSummaryCell.m; sourceTree = "<group>"; };
4DDCA7110ACC9A6100E082CE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Info.plist; sourceTree = "<group>"; };
4DDCA7110ACC9A6100E082CE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4DDCA7120ACC9A6100E082CE /* GitNub.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GitNub.app; sourceTree = BUILT_PRODUCTS_DIR; };
DA8995E20D890D8A00CF2CDA /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
E8F5E24E03AEB6EC03A81C6F /* RubyCocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RubyCocoa.framework; path = /Library/Frameworks/RubyCocoa.framework; sourceTree = "<absolute>"; };
Expand Down

0 comments on commit 1c29dfa

Please sign in to comment.