Skip to content

Commit

Permalink
make it work again in Mavericks/Safari 7.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilsn committed Dec 31, 2013
1 parent 3a40ddd commit f01bbb0
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
_Store
*.swp
*~.nib

build/

*.pbxuser
*.perspective
*.perspectivev3

*.mode1v3
*.mode2v3

MiddleClickClose.xcodeproj/xcuserdata
14 changes: 10 additions & 4 deletions MiddleClickClose.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,15 @@
/* Begin PBXProject section */
089C1669FE841209C02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
};
buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "MiddleClickClose" */;
compatibilityVersion = "Xcode 3.0";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
en,
);
mainGroup = 089C166AFE841209C02AAC07 /* MiddleClickClose */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -217,6 +223,7 @@
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Bundles";
PRODUCT_NAME = MiddleClickClose;
SDKROOT = macosx;
WRAPPER_EXTENSION = bundle;
ZERO_LINK = YES;
};
Expand All @@ -232,15 +239,15 @@
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Bundles";
PRODUCT_NAME = MiddleClickClose;
SDKROOT = macosx;
WRAPPER_EXTENSION = bundle;
};
name = Release;
};
1DEB913F08733D840010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
OTHER_LDFLAGS = (
Expand All @@ -255,8 +262,7 @@
1DEB914008733D840010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
OTHER_LDFLAGS = (
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>868FC6E5-B104-412D-9C05-C0C3B95231AB</string>
<key>IDESourceControlProjectName</key>
<string>MiddleClickClose</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>0C77E7F1-9D73-48C1-A7A8-F9345A511A04</key>
<string>ssh://github.com/Kabal/MiddleClickClose.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>MiddleClickClose.xcodeproj/project.xcworkspace</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>0C77E7F1-9D73-48C1-A7A8-F9345A511A04</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>ssh://github.com/Kabal/MiddleClickClose.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>110</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>0C77E7F1-9D73-48C1-A7A8-F9345A511A04</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>0C77E7F1-9D73-48C1-A7A8-F9345A511A04</string>
<key>IDESourceControlWCCName</key>
<string>MiddleClickClose</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
2 changes: 1 addition & 1 deletion TabButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@implementation NSObject (MCCSwizzle)
- (void)_mcc_mouseUp:(NSEvent *) theEvent
{
if ([theEvent isMiddleButtonEvent] || [theEvent modifierFlags] & NSCommandKeyMask) {
if (theEvent.buttonNumber == 2 || [theEvent modifierFlags] & NSCommandKeyMask) {
[self closeTab: theEvent];
}
}
Expand Down

0 comments on commit f01bbb0

Please sign in to comment.