Revision: 30005
http://sourceforge.net/p/bibdesk/svn/30005
Author: hofman
Date: 2026-02-16 16:34:39 +0000 (Mon, 16 Feb 2026)
Log Message:
-----------
argument to allow using it as notification handler
Modified Paths:
--------------
trunk/bibdesk/BibPref_Display.m
Modified: trunk/bibdesk/BibPref_Display.m
===================================================================
--- trunk/bibdesk/BibPref_Display.m 2026-02-16 16:20:33 UTC (rev 30004)
+++ trunk/bibdesk/BibPref_Display.m 2026-02-16 16:34:39 UTC (rev 30005)
@@ -131,23 +131,19 @@
[[self activeFontWell] changeFontFromFontManager:sender];
}
-- (void)deactivateFontWells {
+- (void)deactivateFontWells:(id)sender {
[[self activeFontWell] deactivate];
}
-- (void)handleWindowDidResignMain:(NSNotification *)notification{
- [self deactivateFontWells];
-}
-
- (void)didShow {
[[NSNotificationCenter defaultCenter] addObserver:self
-
selector:@selector(handleWindowDidResignMain:)
+
selector:@selector(deactivateFontWells:)
name:NSWindowDidResignMainNotification
object:[[self view] window]];
}
- (void)willHide {
- [self deactivateFontWells];
+ [self deactivateFontWells:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:NSWindowDidResignMainNotification
object:[[self view] window]];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit