Revision: 26179 http://sourceforge.net/p/bibdesk/svn/26179 Author: hofman Date: 2021-06-08 22:04:01 +0000 (Tue, 08 Jun 2021) Log Message: ----------- Stop type select helper when ending a sheet
Modified Paths: -------------- trunk/bibdesk/BDSKTypeSelectHelper.m Modified: trunk/bibdesk/BDSKTypeSelectHelper.m =================================================================== --- trunk/bibdesk/BDSKTypeSelectHelper.m 2021-06-08 21:52:10 UTC (rev 26178) +++ trunk/bibdesk/BDSKTypeSelectHelper.m 2021-06-08 22:04:01 UTC (rev 26179) @@ -132,7 +132,10 @@ if (processing == NO) { [[NSNotificationCenter defaultCenter] removeObserver:self]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(typeSelectSearchTimeout:) name:NSWindowWillCloseNotification object:[NSApp keyWindow]]; + if ([[NSApp keyWindow] isSheet]) + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(typeSelectSearchTimeout:) name:NSWindowDidEndSheetNotification object:[[NSApp keyWindow] sheetParent]]; + else + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(typeSelectSearchTimeout:) name:NSWindowWillCloseNotification object:[NSApp keyWindow]]; if ([editor delegate]) [(BDSKTypeSelectHelper *)[editor delegate] typeSelectSearchTimeout:nil]; [editor setDelegate:self]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit