Revision: 28804
http://sourceforge.net/p/bibdesk/svn/28804
Author: hofman
Date: 2024-02-23 14:01:01 +0000 (Fri, 23 Feb 2024)
Log Message:
-----------
register for notifications after window was loaded, don't need notifications
before that
Modified Paths:
--------------
trunk/bibdesk/BibDocument.m
Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2024-02-23 13:53:53 UTC (rev 28803)
+++ trunk/bibdesk/BibDocument.m 2024-02-23 14:01:01 UTC (rev 28804)
@@ -247,8 +247,6 @@
previewer = nil;
toolbarItems = nil;
- [self registerForNotifications];
-
if ([[NSUserDefaults standardUserDefaults]
boolForKey:BDSKUseLocalUrlAndUrlKey] == NO && [[[NSUserDefaults
standardUserDefaults] stringArrayForKey:BDSKQuickSearchFieldsKey]
containsObject:BDSKSkimNotesString]) {
notesSearchIndex = [[BDSKNotesSearchIndex alloc]
initForOwner:self];
[notesSearchIndex setDelegate:self];
@@ -322,16 +320,18 @@
- (void)windowControllerDidLoadNib:(NSWindowController *) aController
{
+ [super windowControllerDidLoadNib:aController];
+
[groupOutlineView setStronglyReferencesItems:YES];
[groupOutlineView expandItem:[groupOutlineView itemAtRow:0]];
[self selectLibraryGroup:nil];
- [super windowControllerDidLoadNib:aController];
-
// this is the controller for the main window
[aController setShouldCloseDocument:YES];
+ [self registerForNotifications];
+
NSUserDefaults *sud = [NSUserDefaults standardUserDefaults];
docFlags.intersectGroups = [sud boolForKey:BDSKIntersectGroupsKey];
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