Could you add a breakpoint in noteNewRecentDocument: as well?
And then step through this method. The only reason of this mechanism not
working that I can think of at the moment is fileURL on your document
returning nil. But how could that be the case?
Perhaps some inconsistency like your code overriding setFileName: but
not fileName and our code getting confused by that. Or rather, Apples
code getting confused. If your back trace is correct then you are using
this on an Apple machine (NSCarbonMenuImpl is a give away). If you are
misusing this mailing list to get Apple related support, you should at
least be telling us :-)

Is your code already in SVN? I could have a look then.

Fred

Am 10.05.2010 22:45, schrieb David Wetzel:
> The NSDocumentController is created in NSApplication finishLaunching.
> 
> My menu is like that:
> 
>   <menuItem title="Open" keyEquivalent="o" action="openDocument:"/>
> 
> (gdb) b openDocument:
> Breakpoint 1 at 0x20c49ba57b552d
> (no other openDocument: method)
> 
> ...
> 
> Breakpoint 1, 0x00007fff8088052d in -[NSDocumentController openDocument:] ()
> (gdb) bt
> #0  0x00007fff8088052d in -[NSDocumentController openDocument:] ()
> #1  0x00007fff806a18ea in -[NSApplication sendAction:to:from:] ()
> #2  0x00007fff806c5e5a in -[NSMenuItem _corePerformAction] ()
> #3  0x00007fff806c5bc4 in -[NSCarbonMenuImpl 
> performActionWithHighlightingForItemAtIndex:] ()
> #4  0x00007fff806ab859 in -[NSMenu performKeyEquivalent:] ()
> #5  0x00007fff806aa601 in -[NSApplication _handleKeyEquivalent:] ()
> #6  0x00007fff8057b221 in -[NSApplication sendEvent:] ()
> #7  0x00007fff805120aa in -[NSApplication run] ()
> #8  0x0000000100001946 in main (argc=1, argv=0x7fff5fbfeff0) at main.m:61
> 
> 
>> there are two places to look. It could be that we totally fail to
>> recognise that a file was loaded. This can be seen, when checking the
> 
> It totally fails to write the recent documents.
> "defaults read EOModelEditor" gets me all sorts of info,
> like the table view columns, window sizes etc..., but NO recent files.


_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to