Revision: 22366
          http://sourceforge.net/p/bibdesk/svn/22366
Author:   hofman
Date:     2018-06-26 22:19:31 +0000 (Tue, 26 Jun 2018)
Log Message:
-----------
Make sure the accessory view is visible when opening using a filter command

Modified Paths:
--------------
    trunk/bibdesk/BDSKDocumentController.m

Modified: trunk/bibdesk/BDSKDocumentController.m
===================================================================
--- trunk/bibdesk/BDSKDocumentController.m      2018-06-26 22:09:27 UTC (rev 
22365)
+++ trunk/bibdesk/BDSKDocumentController.m      2018-06-26 22:19:31 UTC (rev 
22366)
@@ -66,6 +66,10 @@
     BDSKOpenTemplate
 };
 
+@interface NSSavePanel (BDSKPrivateDeclarations)
+- (void)toggleOptionsView:(id)sender;
+@end
+
 @interface NSDocumentController (BDSKDeprecated)
 // we don't want this to be flagged as deprecated, because Apple's replacement 
using UTIs is too buggy, and there's no replacement for this method
 - (NSArray *)fileExtensionsFromType:(NSString *)documentTypeName;
@@ -215,6 +219,8 @@
     if (accessoryController) {
         [accessoryController setEncoding:[BDSKStringEncodingManager 
defaultEncoding]];
         [openPanel setAccessoryView:accessoryView];
+        if (openType == BDSKOpenUsingFilter && [openPanel 
respondsToSelector:@selector(toggleOptionsView:)])
+            [openPanel toggleOptionsView:nil];
     }
     return accessoryController;
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to