handle when user click on cancle on open panel

This commit is contained in:
Antoine Mercadal committed 2011-04-28 18:19:18 +02:00
1 parent dd892f746d
commit 28d174d9d8
6 files changed
+1145 -1028

No files matched your search

+9 -8
View File
@@ -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]];
Binary file not shown.
+2 -2
View File
@@ -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;
File diff suppressed because it is too large. Load diff
@@ -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>
@@ -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>