Compare commits

...

2 Commits

Author SHA1 Message Date
Bjorn Winckler b0625e5e96 Snapshot 59 2011-07-10 17:06:35 +02:00
Bjorn Winckler 8c1e930854 Use public API to toggle display of hidden files
Use public API (introduced in OS X 10.6) to toggle display of hidden
files in the open and save panels.  This fixes a bug where MacVim would
lock up or crash when using the open or save panels on OS X 10.7.
2011-07-09 19:54:35 +02:00
4 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -1232,7 +1232,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>58</string>
<string>59</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
+2 -2
View File
@@ -622,7 +622,7 @@
buildSettings = {
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 58;
CURRENT_PROJECT_VERSION = 59;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
@@ -652,7 +652,7 @@
buildSettings = {
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
COPY_PHASE_STRIP = YES;
CURRENT_PROJECT_VERSION = 58;
CURRENT_PROJECT_VERSION = 59;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
+4
View File
@@ -95,7 +95,11 @@ enum {
@interface NSSavePanel (MMExtras)
- (void)hiddenFilesButtonToggled:(id)sender;
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6)
// This method is a part of a public API as of Mac OS X 10.6. Only use this
// hack for earlier versions of Mac OS X.
- (void)setShowsHiddenFiles:(BOOL)show;
#endif
@end
+4
View File
@@ -99,6 +99,9 @@ NSString *MMSuppressTerminationAlertKey = @"MMSuppressTerminationAlert";
[self setShowsHiddenFiles:[sender intValue]];
}
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6)
// This method is a part of a public API as of Mac OS X 10.6. Only use this
// hack for earlier versions of Mac OS X.
- (void)setShowsHiddenFiles:(BOOL)show
{
// This is undocumented stuff, so be careful. This does the same as
@@ -120,6 +123,7 @@ NSString *MMSuppressTerminationAlertKey = @"MMSuppressTerminationAlert";
[invocation setArgument:&show atIndex:2];
[invocation invoke];
}
#endif
@end // NSSavePanel (MMExtras)