• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWindowController that closes itself
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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];


References: 
 >Re: NSWindowController that closes itself (From: Dan Bernstein <email@hidden>)

  • Prev by Date: Re: NSWindowController that closes itself
  • Next by Date: Modifier keys
  • Previous by thread: Re: NSWindowController that closes itself
  • Next by thread: Re: NSWindowController that closes itself
  • Index(es):
    • Date
    • Thread