Crash when MyDocument becomes the delegate of NSApplication

2009-07-24 Thread Jochen Moeller
Hello List, Suddenly my Doc-based Cocoa App began to crash always when I closed a window. In a long run I tracked it down when myDocument is made the delegate of NSApplication. I did the following few steps to reproduce the crash with an empty App. in Xcode 3.1.3: New Document-based

Re: Crash when MyDocument becomes the delegate of NSApplication

2009-07-24 Thread Kyle Sluder
On Fri, Jul 24, 2009 at 6:01 PM, Jochen Moellerjo.moel...@online.de wrote: In a long run I tracked it down when myDocument is made the delegate of NSApplication. Why would your document be an NSApplication delegate? What happens when you have two documents open -- you can't have two

Re: Crash when MyDocument becomes the delegate of NSApplication

2009-07-24 Thread Jochen Moeller
Hi Kyle, You are right, I did not consider that. Because NSDocument is a controller object I used it similar to a self- made AppController. Thanks for your explanation. Jochen Moeller Am 25.07.2009 um 03:26 schrieb Kyle Sluder: Why would your document be an NSApplication delegate? What