mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-22 00:05:01 +00:00
handle when user click on cancle on open panel
This commit is contained in:
1 parent
dd892f746d
commit
28d174d9d8
6 files changed
+1145
-1028
No files matched your search
+9
-8
@@ -360,21 +360,22 @@ void fsevents_callback(ConstFSEventStreamRef streamRef, void *userData, size_t n
|
||||
#pragma mark Actions
|
||||
|
||||
- (IBAction)chooseFolder:(id)aSender
|
||||
{
|
||||
[spinner setHidden:NO];
|
||||
[spinner startAnimation:nil];
|
||||
|
||||
{
|
||||
NSOpenPanel *openPanel = [NSOpenPanel openPanel];
|
||||
|
||||
[openPanel setCanChooseDirectories:YES];
|
||||
[openPanel setCanCreateDirectories:YES];
|
||||
[openPanel setPrompt:@"Choose folder"];
|
||||
[openPanel setPrompt:@"Choose Cappuccino project"];
|
||||
[openPanel setCanChooseFiles:NO];
|
||||
|
||||
[openPanel runModal];
|
||||
if ([openPanel runModal] != NSFileHandlingPanelOKButton)
|
||||
return;
|
||||
|
||||
currentProjectURL = [openPanel directoryURL];
|
||||
currentProjectName = [[openPanel directoryURL] lastPathComponent];
|
||||
[spinner setHidden:NO];
|
||||
[spinner startAnimation:nil];
|
||||
|
||||
currentProjectURL = [[openPanel URLs] objectAtIndex:0];
|
||||
currentProjectName = [[[openPanel URLs] objectAtIndex:0] lastPathComponent];
|
||||
|
||||
[self computeIgnoredPaths];
|
||||
[self initializeEventStreamWithPath:[currentProjectURL path]];
|
||||
|
||||
BIN
Binary file not shown.
@@ -265,7 +265,7 @@
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "xcodecapp-cocoa.pch";
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
INSTALL_PATH = /Applications;
|
||||
PRODUCT_NAME = "xcodecapp-cocoa";
|
||||
};
|
||||
name = Debug;
|
||||
@@ -285,7 +285,7 @@
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "xcodecapp-cocoa.pch";
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
INSTALL_PATH = /Applications;
|
||||
PRODUCT_NAME = "xcodecapp-cocoa";
|
||||
};
|
||||
name = Release;
|
||||
|
||||
+1053
-1018
File diff suppressed because it is too large.
Load diff
+76
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "027D999913696A7000D3DB13"
|
||||
BuildableName = "xcodecapp-cocoa.app"
|
||||
BlueprintName = "xcodecapp-cocoa"
|
||||
ReferencedContainer = "container:xcodecapp-cocoa.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||
displayScaleIsEnabled = "NO"
|
||||
displayScale = "1.00"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release">
|
||||
<BuildableProductRunnable>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "027D999913696A7000D3DB13"
|
||||
BuildableName = "xcodecapp-cocoa.app"
|
||||
BlueprintName = "xcodecapp-cocoa"
|
||||
ReferencedContainer = "container:xcodecapp-cocoa.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
displayScaleIsEnabled = "NO"
|
||||
displayScale = "1.00"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release">
|
||||
<BuildableProductRunnable>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "027D999913696A7000D3DB13"
|
||||
BuildableName = "xcodecapp-cocoa.app"
|
||||
BlueprintName = "xcodecapp-cocoa"
|
||||
ReferencedContainer = "container:xcodecapp-cocoa.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
+5
@@ -4,6 +4,11 @@
|
||||
<dict>
|
||||
<key>SchemeUserState</key>
|
||||
<dict>
|
||||
<key>xcodecapp-cocoa RELEASE.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>xcodecapp-cocoa.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
|
||||
Reference in new issue
Block a user