Re: NSWindowController that closes itself, revisited
Re: NSWindowController that closes itself, revisited
- Subject: Re: NSWindowController that closes itself, revisited
- From: Dan Bernstein <email@hidden>
- Date: Tue, 20 Nov 2001 18:29:19 +0200
Stupid me.
The window delegate was doing a [[NSNotificationCenter defaultCenter]
removeObserver:self] and I didn't realize that the windowWillClose:
delegate method is no more than an auto-registered notification handler
for NSWindowWillCloseNotification.
Sorry for wasting your time with this.
Maybe in the docs there should be more emphasis on the fact that the
notification mechanism is what's used to send this (and probably other)
message to delegates.
--
Dan