Skip to content
Browse files

- general housekeeping

- updated readme, added section for TabAcceptsCompletion fixin.
- removed DisableWriteStateData fixin, since I don't use it any more (and I doubt anyone else does either)
- removed OptionClickDocumentation fixin since it broke with Xcode 4.5 (may re-implement it eventually)
- added check to XCFixin.m to prevent fixins from loading in Xcode versions < 3, which was apparently possible (and they end up crashing Xcode)
  • Loading branch information...
1 parent a518b98 commit 58c8f7fc3bf811dbf5e00f040d68561a35a32c70 Dave Keck committed Nov 23, 2012
View
14 README.md
@@ -1,4 +1,4 @@
-__This branch is known to be compatible with Xcode 4.3 and 4.3.2. For Xcode 4.0.2 support, see the xcode_402 branch.__
+__This branch is known to be compatible with Xcode 4.5.2. For Xcode 4.0.2 support, see the xcode_402 branch.__
__===== DESCRIPTION =====__
@@ -18,20 +18,18 @@ Fixins are installed into ~/Library/Application Support/Developer/Shared/Xcode/P
__===== FIXINS =====__
-__CurrentLineHighlighter__: This fixin adds highlighting to the line of the current cursor position. This makes visually tracking the current insertion point easier. Many editors have this feature. When in the editor, the Editor menu item will have a new item, "Current Line Highlight Color...", which allows the user to select the color.
+__CurrentLineHighlighter__: This fixin highlights the line currently being edited in the source editor, making it easier to track the current insertion point. This fixin adds a "Current Line Highlight Color..." menu item to the Editor menu to set the highlight color.
-__DisableAnimations__: This fixin disables Xcode's various NSAnimation-based animations. For example, the Show/Hide Debug Area, Show/Hide Navigator, and Show/Hide Utilities animations are disabled with this fixin.
-
-__DisableWriteStateData (Experimental)__: This fixin improves Xcode's responsiveness by disabling the -[IDEWorkspaceDocument writeStateData] method. This method is of course undocumented and I'm unsure what data it typically writes. In my testing, I've noticed this fixin prevents the active source file from being remembered across Xcode launches, and it's very likely that it prevents other data from being written as well. With that said, on my machine this fixin really improves Xcode's responsiveness.
+__DisableAnimations__: This fixin disables Xcode's various NSAnimation-based animations, such as the Show/Hide Debug Area, Show/Hide Navigator, and Show/Hide Utilities animations.
__FindFix__: By default, when Xcode's inline find bar opens, it doesn't display any options to customize searching. This fixin makes Xcode show all find options (such as "Ignore Case") in the find bar when it opens. This fixin also makes text-replacement the default mode in the inline find bar, giving immediate access to the "Replace" and "Replace All" buttons.
-__HideDistractions__: This fixin adds a new "Hide Distractions" menu item to the View menu, which hides auxiliary views in the active source-editing window. This fixin groups various operations into a single menu item, including: View > Hide Toolbar, View > Hide Debug Area, View > Navigators > Hide Navigator, View > Utilities > Hide Utilities, and View > Editor > Standard. Additionally, this menu item maximizes the active window to fill the available screen area. This fixin works best when the XCFixin_DisableAnimations fixin is also installed.
+__HideDistractions__: This fixin adds a new "Hide Distractions" menu item to the View menu, which focuses the current editor by hiding auxiliary views and maximizing the active window. This fixin works best when the XCFixin_DisableAnimations fixin is also installed.
-In Xcode 4.3, the Navigate > Jump to Instruction Pointer menu item interferes with the default 'Hide Distractions' key combination (command-shift-D). To resolve the conflict, change the 'Jump to Instruction Pointer' key combination in the Xcode preferences, or change the 'Hide Distractions' key combination in the fixin source.
+The default key combination for the 'Hide Distractions' menu item is command-shift-D, which interferes with Xcode's default key combination for 'Jump to Instruction Pointer' (under the Navigate menu), so you may want remove that key binding to free up command-shift-D. Alternatively, you can modify the 'Hide Distractions' key combination by editing XCFixin_HideDistractions.m and changing the kHideDistractionsKey and kHideDistractionsKeyModifiers constants at the top of the file.
__InhibitTabNextPlaceholder__: This fixin disables using the tab key to select between argument placeholders of a synthesized (by Xcode's code completion) method call. Xcode's default tab functionality can be annoying if you've synthesized a method invocation and attempt to indent something nearby before filling-in the argument placeholders; in such a case, Xcode jumps to the nearest argument placeholder instead of indenting. This fixin does not affect the "Jump to Next Placeholder" key binding in the Xcode preferences.
-__OptionClickDocumentation__: This fixin changes Xcode's behavior when option-clicking a symbol, by opening the documentation for the given symbol rather than opening the Quick Help popup. (Normally this behavior is accessed by option-clicking a symbol and then clicking the book icon in the Quick Help popup.) Note that this fixin is necessary because option-double-clicking a symbol doesn't display the documentation for the symbol - it just opens the documentation dialog with the symbol entered into the search field.
+__TabAcceptsCompletion__: Upon pressing tab, this fixin makes Xcode accept the currently-highlighted completion suggestion in the completion suggestion popup list. (Xcode's default behavior accepts only as much of the highlighted completion that is in common with other suggestions.)
__UserScripts (Experimental)__: Reinstates some semblance of the Xcode 3.x User Scripts menu. See documentation in the XCFixin_UserScripts directory.
View
3 Shared Code/XCFixin.h
@@ -1,7 +1,5 @@
#import <Foundation/Foundation.h>
-BOOL XCFixinShouldLoad(void);
-
#define XCFixinPreflight() \
if (!XCFixinShouldLoad()) \
return; \
@@ -58,6 +56,7 @@ BOOL XCFixinShouldLoad(void);
} \
})
+BOOL XCFixinShouldLoad(void);
extern const NSUInteger XCFixinMaxLoadAttempts;
/* This function overrides a method at the given class level, and returns the old implementation. If no method existed at
View
38 Shared Code/XCFixin.m
@@ -1,24 +1,30 @@
#import "XCFixin.h"
-
#import <objc/runtime.h>
BOOL XCFixinShouldLoad(void)
{
- BOOL shouldLoad = NO;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- {
- NSString *processName = [[NSProcessInfo processInfo] processName];
-
- if ([processName caseInsensitiveCompare:@"xcode" ] == NSOrderedSame)
- shouldLoad = YES;
- }
-
- [pool drain];
- pool = nil;
-
- return shouldLoad;
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ BOOL result = NO;
+
+ /* Prevent our plugins from loading in non-IDE processes, like xcodebuild. */
+ NSString *processName = [[NSProcessInfo processInfo] processName];
+ XCFixinConfirmOrPerform([processName caseInsensitiveCompare: @"xcode"] == NSOrderedSame, goto cleanup);
+
+ /* Prevent our plugins from loading in Xcode versions < 4. */
+ NSArray *versionComponents = [[[NSBundle mainBundle] objectForInfoDictionaryKey: @"CFBundleShortVersionString"] componentsSeparatedByString: @"."];
+ XCFixinConfirmOrPerform(versionComponents && [versionComponents count], goto cleanup);
+ NSInteger xcodeMajorVersion = [[versionComponents objectAtIndex: 0] integerValue];
+ XCFixinConfirmOrPerform(xcodeMajorVersion >= 4, goto cleanup);
+
+ result = YES;
+
+ cleanup:
+ {
+ [pool release],
+ pool = nil;
+ }
+
+ return result;
}
const NSUInteger XCFixinMaxLoadAttempts = 3;
View
2 XCFixin_DisableWriteStateData/English.lproj/InfoPlist.strings
@@ -1,2 +0,0 @@
-/* Localized versions of Info.plist keys */
-
View
34 XCFixin_DisableWriteStateData/Info.plist
@@ -1,34 +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>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string></string>
- <key>CFBundleIdentifier</key>
- <string>com.themha.${PRODUCT_NAME:rfc1034Identifier}</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>BNDL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1</string>
- <key>NSPrincipalClass</key>
- <string>XCFixin_DisableWriteStateData</string>
- <key>XC4Compatible</key>
- <true/>
- <key>XCGCReady</key>
- <true/>
- <key>XCPluginHasUI</key>
- <false/>
-</dict>
-</plist>
View
30 XCFixin_DisableWriteStateData/XCFixin_DisableWriteStateData.m
@@ -1,30 +0,0 @@
-#import <Cocoa/Cocoa.h>
-#import <objc/runtime.h>
-
-#import "XCFixin.h"
-
-static IMP gOriginalWriteStateData = nil;
-
-@interface XCFixin_DisableWriteStateData : NSObject
-@end
-
-@implementation XCFixin_DisableWriteStateData
-
-static BOOL overrideWriteStateData(id self, SEL _cmd)
-{
- /* -(BOOL)[IDEWorkspaceDocument writeStateData] */
- return YES;
-}
-
-+ (void)pluginDidLoad: (NSBundle *)plugin
-{
- XCFixinPreflight();
-
- /* Override -(BOOL)[IDEWorkspaceDocument writeStateData] */
- gOriginalWriteStateData = XCFixinOverrideMethodString(@"IDEWorkspaceDocument", @selector(writeStateData), (IMP)&overrideWriteStateData);
- XCFixinAssertOrPerform(gOriginalWriteStateData, goto failed);
-
- XCFixinPostflight();
-}
-
-@end
View
259 XCFixin_DisableWriteStateData/XCFixin_DisableWriteStateData.xcodeproj/project.pbxproj
@@ -1,259 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 5514A3FD1506CB9500A8AD77 /* XCFixin.m in Sources */ = {isa = PBXBuildFile; fileRef = 5514A3FC1506CB9500A8AD77 /* XCFixin.m */; };
- 55C015D212B7BC2500354E5C /* XCFixin_DisableWriteStateData.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C015D112B7BC2500354E5C /* XCFixin_DisableWriteStateData.m */; };
- 8D5B49B0048680CD000E48DA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; };
- 8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
- 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
- 5514A3FC1506CB9500A8AD77 /* XCFixin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = XCFixin.m; path = "../Shared Code/XCFixin.m"; sourceTree = "<group>"; };
- 5595EEED150067CE00A30634 /* XCFixin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = XCFixin.h; path = "../Shared Code/XCFixin.h"; sourceTree = "<group>"; };
- 55C015D112B7BC2500354E5C /* XCFixin_DisableWriteStateData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XCFixin_DisableWriteStateData.m; sourceTree = "<group>"; };
- 8D5B49B6048680CD000E48DA /* XCFixin_DisableWriteStateData.xcplugin */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = XCFixin_DisableWriteStateData.xcplugin; sourceTree = BUILT_PRODUCTS_DIR; };
- 8D5B49B7048680CD000E48DA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 8D5B49B3048680CD000E48DA /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 089C166AFE841209C02AAC07 /* XCFixin_DisableWriteStateData */ = {
- isa = PBXGroup;
- children = (
- 08FB77AFFE84173DC02AAC07 /* Classes */,
- 089C167CFE841241C02AAC07 /* Resources */,
- 089C1671FE841209C02AAC07 /* Frameworks and Libraries */,
- 19C28FB8FE9D52D311CA2CBB /* Products */,
- );
- name = XCFixin_DisableWriteStateData;
- sourceTree = "<group>";
- };
- 089C1671FE841209C02AAC07 /* Frameworks and Libraries */ = {
- isa = PBXGroup;
- children = (
- 1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */,
- );
- name = "Frameworks and Libraries";
- sourceTree = "<group>";
- };
- 089C167CFE841241C02AAC07 /* Resources */ = {
- isa = PBXGroup;
- children = (
- 8D5B49B7048680CD000E48DA /* Info.plist */,
- 089C167DFE841241C02AAC07 /* InfoPlist.strings */,
- );
- name = Resources;
- sourceTree = "<group>";
- };
- 08FB77AFFE84173DC02AAC07 /* Classes */ = {
- isa = PBXGroup;
- children = (
- 5595EEED150067CE00A30634 /* XCFixin.h */,
- 5514A3FC1506CB9500A8AD77 /* XCFixin.m */,
- 55C015D112B7BC2500354E5C /* XCFixin_DisableWriteStateData.m */,
- );
- name = Classes;
- sourceTree = "<group>";
- };
- 1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */ = {
- isa = PBXGroup;
- children = (
- 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */,
- );
- name = "Linked Frameworks";
- sourceTree = "<group>";
- };
- 19C28FB8FE9D52D311CA2CBB /* Products */ = {
- isa = PBXGroup;
- children = (
- 8D5B49B6048680CD000E48DA /* XCFixin_DisableWriteStateData.xcplugin */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 8D5B49AC048680CD000E48DA /* XCFixin_DisableWriteStateData */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1DEB913A08733D840010E9CD /* Build configuration list for PBXNativeTarget "XCFixin_DisableWriteStateData" */;
- buildPhases = (
- 8D5B49AF048680CD000E48DA /* Resources */,
- 8D5B49B1048680CD000E48DA /* Sources */,
- 8D5B49B3048680CD000E48DA /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = XCFixin_DisableWriteStateData;
- productInstallPath = "$(HOME)/Library/Bundles";
- productName = XCFixin_DisableWriteStateData;
- productReference = 8D5B49B6048680CD000E48DA /* XCFixin_DisableWriteStateData.xcplugin */;
- productType = "com.apple.product-type.bundle";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 089C1669FE841209C02AAC07 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0410;
- };
- buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "XCFixin_DisableWriteStateData" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 1;
- knownRegions = (
- English,
- Japanese,
- French,
- German,
- );
- mainGroup = 089C166AFE841209C02AAC07 /* XCFixin_DisableWriteStateData */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 8D5B49AC048680CD000E48DA /* XCFixin_DisableWriteStateData */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 8D5B49AF048680CD000E48DA /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8D5B49B0048680CD000E48DA /* InfoPlist.strings in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 8D5B49B1048680CD000E48DA /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 55C015D212B7BC2500354E5C /* XCFixin_DisableWriteStateData.m in Sources */,
- 5514A3FD1506CB9500A8AD77 /* XCFixin.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 089C167DFE841241C02AAC07 /* InfoPlist.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 089C167EFE841241C02AAC07 /* English */,
- );
- name = InfoPlist.strings;
- sourceTree = "<group>";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 1DEB913B08733D840010E9CD /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEPLOYMENT_LOCATION = YES;
- DEPLOYMENT_POSTPROCESSING = YES;
- DSTROOT = "$(HOME)";
- GCC_ENABLE_OBJC_GC = supported;
- INFOPLIST_FILE = Info.plist;
- INSTALL_PATH = "/Library/Application Support/Developer/Shared/Xcode/Plug-ins";
- LD_RUNPATH_SEARCH_PATHS = /Developer;
- PRODUCT_NAME = XCFixin_DisableWriteStateData;
- STRIP_INSTALLED_PRODUCT = YES;
- VALID_ARCHS = "i386 x86_64";
- WRAPPER_EXTENSION = xcplugin;
- };
- name = Debug;
- };
- 1DEB913C08733D840010E9CD /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- DEPLOYMENT_LOCATION = YES;
- DEPLOYMENT_POSTPROCESSING = YES;
- DSTROOT = "$(HOME)";
- GCC_ENABLE_OBJC_GC = supported;
- INFOPLIST_FILE = Info.plist;
- INSTALL_PATH = "/Library/Application Support/Developer/Shared/Xcode/Plug-ins";
- LD_RUNPATH_SEARCH_PATHS = /Developer;
- PRODUCT_NAME = XCFixin_DisableWriteStateData;
- STRIP_INSTALLED_PRODUCT = YES;
- VALID_ARCHS = "i386 x86_64";
- WRAPPER_EXTENSION = xcplugin;
- };
- name = Release;
- };
- 1DEB913F08733D840010E9CD /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- };
- name = Debug;
- };
- 1DEB914008733D840010E9CD /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1DEB913A08733D840010E9CD /* Build configuration list for PBXNativeTarget "XCFixin_DisableWriteStateData" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1DEB913B08733D840010E9CD /* Debug */,
- 1DEB913C08733D840010E9CD /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "XCFixin_DisableWriteStateData" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1DEB913F08733D840010E9CD /* Debug */,
- 1DEB914008733D840010E9CD /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 089C1669FE841209C02AAC07 /* Project object */;
-}
View
7 ...Data/XCFixin_DisableWriteStateData.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
- version = "1.0">
- <FileRef
- location = "self:XCFixin_DisableWriteStateData.xcodeproj">
- </FileRef>
-</Workspace>
View
6 XCFixin_HideDistractions/XCFixin_HideDistractions.m
@@ -4,6 +4,8 @@
#import "XCFixin.h"
static NSString *const kDisableAnimationsClassName = @"XCFixin_DisableAnimations";
+static NSString *const kHideDistractionsKey = @"D";
+static NSUInteger kHideDistractionsKeyModifiers = (NSCommandKeyMask | NSShiftKeyMask);
@interface XCFixin_HideDistractions : NSObject
@end
@@ -27,9 +29,9 @@ + (void)applicationFinishedLaunching: (NSNotification *)notification
XCFixinAssertOrPerform(viewMenuItem, return);
/* The 'Hide Distractions' menu item key combination can be set below. */
- hideDistractionsMenuItem = [[[NSMenuItem alloc] initWithTitle: @"Hide Distractions" action: @selector(hideDistractions:) keyEquivalent: @"D"] autorelease];
+ hideDistractionsMenuItem = [[[NSMenuItem alloc] initWithTitle: @"Hide Distractions" action: @selector(hideDistractions:) keyEquivalent: kHideDistractionsKey] autorelease];
XCFixinAssertOrPerform(hideDistractionsMenuItem, return);
- [hideDistractionsMenuItem setKeyEquivalentModifierMask: (NSCommandKeyMask | NSShiftKeyMask)];
+ [hideDistractionsMenuItem setKeyEquivalentModifierMask: kHideDistractionsKeyModifiers];
[hideDistractionsMenuItem setTarget: self];
[viewMenu addItem: hideDistractionsMenuItem];
}
View
2 XCFixin_OptionClickDocumentation/English.lproj/InfoPlist.strings
@@ -1,2 +0,0 @@
-/* Localized versions of Info.plist keys */
-
View
34 XCFixin_OptionClickDocumentation/Info.plist
@@ -1,34 +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>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string></string>
- <key>CFBundleIdentifier</key>
- <string>com.themha.${PRODUCT_NAME:rfc1034Identifier}</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>BNDL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1</string>
- <key>NSPrincipalClass</key>
- <string>XCFixin_OptionClickDocumentation</string>
- <key>XC4Compatible</key>
- <true/>
- <key>XCGCReady</key>
- <true/>
- <key>XCPluginHasUI</key>
- <false/>
-</dict>
-</plist>
View
40 XCFixin_OptionClickDocumentation/XCFixin_OptionClickDocumentation.m
@@ -1,40 +0,0 @@
-#import <Cocoa/Cocoa.h>
-#import <objc/runtime.h>
-
-#import "XCFixin.h"
-
-static IMP gOriginalShowPanel = nil;
-static IMP gOriginalLoadWindow = nil;
-
-@interface XCFixin_OptionClickDocumentation : NSObject
-@end
-
-@implementation XCFixin_OptionClickDocumentation
-
-static void overrideShowPanel(id self, SEL _cmd)
-{
- /* -(void)[IDEQuickHelpOneShotController showPanel] */
- [self performSelector: @selector(showDocumentation:)];
-}
-
-static void overrideLoadWindow(id self, SEL _cmd)
-{
- /* -(void)[IDEQuickHelpOneShotWindowController loadWindow] */
-}
-
-+ (void)pluginDidLoad: (NSBundle *)plugin
-{
- XCFixinPreflight();
-
- /* Override -(void)[IDEQuickHelpOneShotController showPanel] */
- gOriginalShowPanel = XCFixinOverrideMethodString(@"IDEQuickHelpOneShotController", @selector(showPanel), (IMP)&overrideShowPanel);
- XCFixinAssertOrPerform(gOriginalShowPanel, goto failed);
-
- /* Override -(void)[IDEQuickHelpOneShotWindowController loadWindow] */
- gOriginalLoadWindow = XCFixinOverrideMethodString(@"IDEQuickHelpOneShotWindowController", @selector(loadWindow), (IMP)&overrideLoadWindow);
- XCFixinAssertOrPerform(gOriginalLoadWindow, goto failed);
-
- XCFixinPostflight();
-}
-
-@end
View
261 XCFixin_OptionClickDocumentation/XCFixin_OptionClickDocumentation.xcodeproj/project.pbxproj
@@ -1,261 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 55C015D212B7BC2500354E5C /* XCFixin_OptionClickDocumentation.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C015D112B7BC2500354E5C /* XCFixin_OptionClickDocumentation.m */; };
- 55CD34F61501DFEB00E4E589 /* XCFixin.m in Sources */ = {isa = PBXBuildFile; fileRef = 55CD34F51501DFEB00E4E589 /* XCFixin.m */; };
- 8D5B49B0048680CD000E48DA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; };
- 8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
- 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
- 5595EEDB150067A100A30634 /* XCFixin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = XCFixin.h; path = "../Shared Code/XCFixin.h"; sourceTree = "<group>"; };
- 55C015D112B7BC2500354E5C /* XCFixin_OptionClickDocumentation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XCFixin_OptionClickDocumentation.m; sourceTree = "<group>"; };
- 55CD34F51501DFEB00E4E589 /* XCFixin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = XCFixin.m; path = "../Shared Code/XCFixin.m"; sourceTree = "<group>"; };
- 8D5B49B6048680CD000E48DA /* XCFixin_OptionClickDocumentation.xcplugin */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = XCFixin_OptionClickDocumentation.xcplugin; sourceTree = BUILT_PRODUCTS_DIR; };
- 8D5B49B7048680CD000E48DA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 8D5B49B3048680CD000E48DA /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 089C166AFE841209C02AAC07 /* XCFixin_OptionClickDocumentation */ = {
- isa = PBXGroup;
- children = (
- 08FB77AFFE84173DC02AAC07 /* Classes */,
- 089C167CFE841241C02AAC07 /* Resources */,
- 089C1671FE841209C02AAC07 /* Frameworks and Libraries */,
- 19C28FB8FE9D52D311CA2CBB /* Products */,
- );
- name = XCFixin_OptionClickDocumentation;
- sourceTree = "<group>";
- };
- 089C1671FE841209C02AAC07 /* Frameworks and Libraries */ = {
- isa = PBXGroup;
- children = (
- 1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */,
- );
- name = "Frameworks and Libraries";
- sourceTree = "<group>";
- };
- 089C167CFE841241C02AAC07 /* Resources */ = {
- isa = PBXGroup;
- children = (
- 8D5B49B7048680CD000E48DA /* Info.plist */,
- 089C167DFE841241C02AAC07 /* InfoPlist.strings */,
- );
- name = Resources;
- sourceTree = "<group>";
- };
- 08FB77AFFE84173DC02AAC07 /* Classes */ = {
- isa = PBXGroup;
- children = (
- 5595EEDB150067A100A30634 /* XCFixin.h */,
- 55CD34F51501DFEB00E4E589 /* XCFixin.m */,
- 55C015D112B7BC2500354E5C /* XCFixin_OptionClickDocumentation.m */,
- );
- name = Classes;
- sourceTree = "<group>";
- };
- 1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */ = {
- isa = PBXGroup;
- children = (
- 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */,
- );
- name = "Linked Frameworks";
- sourceTree = "<group>";
- };
- 19C28FB8FE9D52D311CA2CBB /* Products */ = {
- isa = PBXGroup;
- children = (
- 8D5B49B6048680CD000E48DA /* XCFixin_OptionClickDocumentation.xcplugin */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 8D5B49AC048680CD000E48DA /* XCFixin_OptionClickDocumentation */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1DEB913A08733D840010E9CD /* Build configuration list for PBXNativeTarget "XCFixin_OptionClickDocumentation" */;
- buildPhases = (
- 8D5B49AF048680CD000E48DA /* Resources */,
- 8D5B49B1048680CD000E48DA /* Sources */,
- 8D5B49B3048680CD000E48DA /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = XCFixin_OptionClickDocumentation;
- productInstallPath = "$(HOME)/Library/Bundles";
- productName = XCFixin_OptionClickDocumentation;
- productReference = 8D5B49B6048680CD000E48DA /* XCFixin_OptionClickDocumentation.xcplugin */;
- productType = "com.apple.product-type.bundle";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 089C1669FE841209C02AAC07 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0410;
- };
- buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "XCFixin_OptionClickDocumentation" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 1;
- knownRegions = (
- English,
- Japanese,
- French,
- German,
- );
- mainGroup = 089C166AFE841209C02AAC07 /* XCFixin_OptionClickDocumentation */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 8D5B49AC048680CD000E48DA /* XCFixin_OptionClickDocumentation */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 8D5B49AF048680CD000E48DA /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8D5B49B0048680CD000E48DA /* InfoPlist.strings in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 8D5B49B1048680CD000E48DA /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 55C015D212B7BC2500354E5C /* XCFixin_OptionClickDocumentation.m in Sources */,
- 55CD34F61501DFEB00E4E589 /* XCFixin.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 089C167DFE841241C02AAC07 /* InfoPlist.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 089C167EFE841241C02AAC07 /* English */,
- );
- name = InfoPlist.strings;
- sourceTree = "<group>";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 1DEB913B08733D840010E9CD /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEPLOYMENT_LOCATION = YES;
- DEPLOYMENT_POSTPROCESSING = YES;
- DSTROOT = "$(HOME)";
- GCC_ENABLE_OBJC_GC = supported;
- INFOPLIST_FILE = Info.plist;
- INSTALL_PATH = "/Library/Application Support/Developer/Shared/Xcode/Plug-ins";
- LD_RUNPATH_SEARCH_PATHS = /Developer;
- PRODUCT_NAME = XCFixin_OptionClickDocumentation;
- STRIP_INSTALLED_PRODUCT = YES;
- VALID_ARCHS = "i386 x86_64";
- WRAPPER_EXTENSION = xcplugin;
- };
- name = Debug;
- };
- 1DEB913C08733D840010E9CD /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- DEPLOYMENT_LOCATION = YES;
- DEPLOYMENT_POSTPROCESSING = YES;
- DSTROOT = "$(HOME)";
- GCC_ENABLE_OBJC_GC = supported;
- INFOPLIST_FILE = Info.plist;
- INSTALL_PATH = "/Library/Application Support/Developer/Shared/Xcode/Plug-ins";
- LD_RUNPATH_SEARCH_PATHS = /Developer;
- PRODUCT_NAME = XCFixin_OptionClickDocumentation;
- STRIP_INSTALLED_PRODUCT = YES;
- VALID_ARCHS = "i386 x86_64";
- WRAPPER_EXTENSION = xcplugin;
- };
- name = Release;
- };
- 1DEB913F08733D840010E9CD /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- };
- name = Debug;
- };
- 1DEB914008733D840010E9CD /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1DEB913A08733D840010E9CD /* Build configuration list for PBXNativeTarget "XCFixin_OptionClickDocumentation" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1DEB913B08733D840010E9CD /* Debug */,
- 1DEB913C08733D840010E9CD /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "XCFixin_OptionClickDocumentation" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1DEB913F08733D840010E9CD /* Debug */,
- 1DEB914008733D840010E9CD /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 089C1669FE841209C02AAC07 /* Project object */;
-}
View
7 ...n/XCFixin_OptionClickDocumentation.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
- version = "1.0">
- <FileRef
- location = "self:XCFixin_OptionClickDocumentation.xcodeproj">
- </FileRef>
-</Workspace>
View
8 XCFixins.xcworkspace/contents.xcworkspacedata
@@ -8,9 +8,6 @@
location = "group:XCFixin_DisableAnimations/XCFixin_DisableAnimations.xcodeproj">
</FileRef>
<FileRef
- location = "group:XCFixin_DisableWriteStateData/XCFixin_DisableWriteStateData.xcodeproj">
- </FileRef>
- <FileRef
location = "group:XCFixin_FindFix/XCFixin_FindFix.xcodeproj">
</FileRef>
<FileRef
@@ -20,12 +17,9 @@
location = "group:XCFixin_InhibitTabNextPlaceholder/XCFixin_InhibitTabNextPlaceholder.xcodeproj">
</FileRef>
<FileRef
- location = "group:XCFixin_OptionClickDocumentation/XCFixin_OptionClickDocumentation.xcodeproj">
+ location = "group:XCFixin_TabAcceptsCompletions/XCFixin_TabAcceptsCompletions.xcodeproj">
</FileRef>
<FileRef
location = "group:XCFixin_UserScripts/XCFixin_UserScripts.xcodeproj">
</FileRef>
- <FileRef
- location = "group:XCFixin_TabAcceptsCompletions/XCFixin_TabAcceptsCompletions.xcodeproj">
- </FileRef>
</Workspace>

0 comments on commit 58c8f7f

Please sign in to comment.
Something went wrong with that request. Please try again.