Re: NSWindowController that closes itself
Re: NSWindowController that closes itself
- Subject: Re: NSWindowController that closes itself
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 13 Nov 2001 22:33:38 -0800
On Tuesday, November 13, 2001, at 10:13 PM, Dan Bernstein wrote:
On Wednesday, November 14, 2001, at 05:08 AM, Erik M. Buck wrote:
if([[[self window] delegate] windowWillClose:[self window]])
Isn't it - (void)windowWillClose:(NSNotification *)aNotification ? If
it is (as the documentation says), what does it mean to test its return
value? (OK, now I'm probably demonstrating my cluelessness :-)
No, you're right. Window delegate methods used to get the window, but
today they get notifications. I didn't spot this either, because I
started hacking NeXTSTEP about as long ago as Erik did.
-jcr
[Objc retain];