window delegate madness
window delegate madness
- Subject: window delegate madness
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 8 Oct 2002 20:03:02 +0200
In a document based application, I open two documents (with two calls
to openPanel, if I open two documents in one openPanel, no bug occurs)
close the first one and windowShouldClose: gets called (which proves
that the window does have a proper delegate) but windowWillClose: is
not called.
Both methods have NSLog() statements.
Closing the other window both delegate methods get called, as it should
be.
When I do this too often, the bug disappears. When I restart the app,
the bug reappears (which is the only reassuring thing).
Each document has a repeating NSTimer. Without timer, or with a
non-repeating timer, the bug does not appear.
Has anybody seen something like this? Any suggestions?
Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.