• 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, revisited
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Mixing Cocoa/Java problem
  • Next by Date: Re: Mixing Cocoa/Java problem
  • Previous by thread: Example to send a Sleep AppleEvent from Cocoa ?
  • Next by thread: ANN: Text Wielder beta 1
  • Index(es):
    • Date
    • Thread