Skip to content

Commit

Permalink
working on OX X Lion
Browse files Browse the repository at this point in the history
  • Loading branch information
laullon committed Jul 24, 2011
1 parent f0c7644 commit 1a6ff75
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 34 deletions.
31 changes: 10 additions & 21 deletions GitX.xcodeproj/project.pbxproj
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 45;
objectVersion = 46;
objects = {

/* Begin PBXAggregateTarget section */
Expand Down Expand Up @@ -63,6 +63,7 @@
31460CD4124185BA00B90AED /* ReadMe.txt in Resources */ = {isa = PBXBuildFile; fileRef = 31460CAF124185BA00B90AED /* ReadMe.txt */; };
31460CD5124185BA00B90AED /* Source Code License.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 31460CB0124185BA00B90AED /* Source Code License.rtf */; };
31460CD6124185BA00B90AED /* TODO in Resources */ = {isa = PBXBuildFile; fileRef = 31460CB1124185BA00B90AED /* TODO */; };
314BCAC713DAF5FA00CD85F3 /* PBGitSidebarView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F58DB55F10566E3900CFDF4A /* PBGitSidebarView.xib */; };
316E7202131EE9C600AFBB36 /* list_Template.png in Resources */ = {isa = PBXBuildFile; fileRef = 316E7200131EE9C600AFBB36 /* list_Template.png */; };
316E7203131EE9C600AFBB36 /* sidebar_Template.png in Resources */ = {isa = PBXBuildFile; fileRef = 316E7201131EE9C600AFBB36 /* sidebar_Template.png */; };
31776089133569350025876E /* SearchWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 31776088133569350025876E /* SearchWebView.m */; };
Expand Down Expand Up @@ -171,7 +172,6 @@
F580E6AE0E733276009E2D3F /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F580E6AD0E733276009E2D3F /* Sparkle.framework */; };
F580E6B10E73328C009E2D3F /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = F580E6AD0E733276009E2D3F /* Sparkle.framework */; };
F58DB55910566D3500CFDF4A /* PBGitSidebarController.m in Sources */ = {isa = PBXBuildFile; fileRef = F58DB55810566D3500CFDF4A /* PBGitSidebarController.m */; };
F58DB56010566E3900CFDF4A /* PBGitSidebarView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F58DB55F10566E3900CFDF4A /* PBGitSidebarView.xib */; };
F58DB5E8105671B600CFDF4A /* PBSourceViewItem.m in Sources */ = {isa = PBXBuildFile; fileRef = F58DB5E7105671B600CFDF4A /* PBSourceViewItem.m */; };
F59116E60E843BB50072CCB1 /* PBGitCommitView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F59116E50E843BB50072CCB1 /* PBGitCommitView.xib */; };
F59116E90E843BCB0072CCB1 /* PBGitCommitController.m in Sources */ = {isa = PBXBuildFile; fileRef = F59116E80E843BCB0072CCB1 /* PBGitCommitController.m */; };
Expand Down Expand Up @@ -1220,8 +1220,12 @@
/* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 26FC0A880875C7B200E6366F /* Build configuration list for PBXProject "GitX" */;
compatibilityVersion = "Xcode 3.1";
attributes = {
LastUpgradeCheck = 0420;
};
buildConfigurationList = 26FC0A880875C7B200E6366F /* Build configuration list for PBXProject "gitx" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
English,
Expand Down Expand Up @@ -1266,14 +1270,13 @@
47DBDB6A0E94EF6500671A1E /* Preferences.xib in Resources */,
47DBDBB10E94F6CA00671A1E /* Updates.png in Resources */,
F569AE930F2CBD7C00C2FFA7 /* Credits.html in Resources */,
F58DB56010566E3900CFDF4A /* PBGitSidebarView.xib in Resources */,
314BCAC713DAF5FA00CD85F3 /* PBGitSidebarView.xib in Resources */,
D85B939310E3D8B4007F3C28 /* PBCreateBranchSheet.xib in Resources */,
D889EB3110E6BCBB00F08413 /* PBCreateTagSheet.xib in Resources */,
D8357535112640F100DE249D /* PBRemoteProgressSheet.xib in Resources */,
D8083C47111F136400337480 /* PBAddRemoteSheet.xib in Resources */,
D8083DCD111F918900337480 /* PBCloneRepsitoryToSheet.xib in Resources */,
D8FDD9F711432A12005647F6 /* PBCloneRepositoryPanel.xib in Resources */,
F58DB56010566E3900CFDF4A /* PBGitSidebarView.xib in Resources */,
D85810551127476E007F254B /* StageView.png in Resources */,
D858108311274D28007F254B /* Branch.png in Resources */,
D858108411274D28007F254B /* RemoteBranch.png in Resources */,
Expand Down Expand Up @@ -1603,7 +1606,6 @@
"\"$(SRCROOT)\"",
);
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
Expand Down Expand Up @@ -1662,7 +1664,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_PREPROCESS = YES;
MACOSX_DEPLOYMENT_TARGET = 10.5;
PREBINDING = NO;
SDKROOT = macosx10.6;
};
name = Debug;
Expand All @@ -1679,7 +1680,6 @@
INFOPLIST_PREFIX_HEADER = $PROJECT_TEMP_DIR/revision;
INFOPLIST_PREPROCESS = YES;
MACOSX_DEPLOYMENT_TARGET = 10.5;
PREBINDING = NO;
SDKROOT = macosx10.6;
};
name = Release;
Expand All @@ -1691,7 +1691,6 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand All @@ -1704,7 +1703,6 @@
"-framework",
AppKit,
);
PREBINDING = NO;
PRODUCT_NAME = gitx_askpasswd;
SDKROOT = "";
};
Expand All @@ -1717,7 +1715,6 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_MODEL_TUNING = G5;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
Expand All @@ -1728,7 +1725,6 @@
"-framework",
AppKit,
);
PREBINDING = NO;
PRODUCT_NAME = gitx_askpasswd;
SDKROOT = "";
ZERO_LINK = NO;
Expand All @@ -1740,7 +1736,6 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
Expand All @@ -1751,7 +1746,6 @@
"-framework",
AppKit,
);
PREBINDING = NO;
PRODUCT_NAME = gitx_askpasswd;
SDKROOT = "";
};
Expand All @@ -1763,7 +1757,6 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand All @@ -1777,7 +1770,6 @@
"-framework",
AppKit,
);
PREBINDING = NO;
PRODUCT_NAME = gitx;
SDKROOT = "";
ZERO_LINK = YES;
Expand All @@ -1790,7 +1782,6 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_MODEL_TUNING = G5;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
Expand All @@ -1802,7 +1793,6 @@
"-framework",
AppKit,
);
PREBINDING = NO;
PRODUCT_NAME = gitx;
SDKROOT = "";
ZERO_LINK = NO;
Expand All @@ -1827,7 +1817,6 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_ENABLE_FIX_AND_CONTINUE = NO;
INFOPLIST_PREPROCESS = YES;
PRODUCT_NAME = "Generate PList Prefix";
SDKROOT = "";
Expand All @@ -1847,7 +1836,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
26FC0A880875C7B200E6366F /* Build configuration list for PBXProject "GitX" */ = {
26FC0A880875C7B200E6366F /* Build configuration list for PBXProject "gitx" */ = {
isa = XCConfigurationList;
buildConfigurations = (
26FC0A890875C7B200E6366F /* Debug */,
Expand Down
18 changes: 5 additions & 13 deletions PBRefController.m
Expand Up @@ -88,22 +88,14 @@ - (void)showConfirmPushRefSheet:(PBGitRef *)ref remote:(PBGitRef *)remoteRef
if (remoteRef)
[info setObject:remoteRef forKey:kGitXRemoteType];

[alert beginSheetModalForWindow:[historyController.repository.windowController window]
modalDelegate:self
didEndSelector:@selector(confirmPushRefSheetDidEnd:returnCode:contextInfo:)
contextInfo:info];
}

- (void)confirmPushRefSheetDidEnd:(NSAlert *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo
{
[[sheet window] orderOut:nil];

if ([[sheet suppressionButton] state] == NSOnState)
NSInteger returnCode=[alert runModal];

if ([[alert suppressionButton] state] == NSOnState)
[PBGitDefaults suppressDialogWarningForDialog:kDialogConfirmPush];

if (returnCode == NSAlertDefaultReturn) {
PBGitRef *ref = [(NSDictionary *)contextInfo objectForKey:kGitXBranchType];
PBGitRef *remoteRef = [(NSDictionary *)contextInfo objectForKey:kGitXRemoteType];
PBGitRef *ref = [info objectForKey:kGitXBranchType];
PBGitRef *remoteRef = [info objectForKey:kGitXRemoteType];

[historyController.repository beginPushRef:ref toRemote:remoteRef];
}
Expand Down

0 comments on commit 1a6ff75

Please sign in to comment.