> On Sep 29, 2014, at 06:57 , Christiaan Hofman <cmhof...@gmail.com> wrote:
> 
> This is trange: then what calls [NSDocument int] if it isn't in openDocument? 
> And if it is delayed, then when can the ivars be reset? They must be reset, 
> because nmot all documents are opened using a panel.

Here’s the backtrace if I break on -init:


#0      0x00000001000295a9 in -[BibDocument init] at 
/Volumes/Local/Users/amaxwell/build/bibdesk-clean/BibDocument.m:229
#1      0x00007fff8c7f1cd5 in -[NSDocument initWithContentsOfURL:ofType:error:] 
()
#2      0x00007fff8c9ce6d9 in -[NSDocumentController 
makeDocumentWithContentsOfURL:ofType:error:] ()
#3      0x000000010018dd88 in -[BDSKDocumentController 
makeDocumentWithContentsOfURL:ofType:error:] at 
/Volumes/Local/Users/amaxwell/build/bibdesk-clean/BDSKDocumentController.m:252
#4      0x00007fff8c9dc8a6 in -[NSDocumentController(NSDeprecated) 
openDocumentWithContentsOfURL:display:error:] ()
#5      0x000000010018e404 in -[BDSKDocumentController 
openDocumentWithContentsOfURL:display:error:] at 
/Volumes/Local/Users/amaxwell/build/bibdesk-clean/BDSKDocumentController.m:318
#6      0x00007fff8c9cd5c1 in __80-[NSDocumentController 
openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_4 ()
#7      0x00007fff8c9cc763 in -[NSDocumentController 
_openDocumentWithContentsOfURL:usingProcedure:] ()

Since Apple added that block-based asynchronous loading bullshit in 10.7, I 
have no idea what the NSDocument load/save paths look like, especially if 
deprecated code is involved. My guess is that Apple doesn’t either, for the 
most part.

Adam

------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Bibdesk-develop mailing list
Bibdesk-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to