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

Delegate methods


  • Subject: Delegate methods
  • From: Neil Earnshaw <email@hidden>
  • Date: Tue, 19 Aug 2003 22:02:40 +0100

When you make a subclass of NSWindowController the delegate of an NSWindow it becomes eligible for windowWillClose. Is the notification mechanism involved in the receipt of windowWillClose?

I don't think it is, but under some conditions my window controller doesn't get the windowWillClose call when I click the little red button. The window does go away, but later when I close the application it pops back up again and asks me if I want to save. When I select no it really does get released. The reason I suspect that the notification mechanism is playing a part in this is that when I comment out [nc removeObserver:self] in the window controller, the window really does release all its resources the first time I try to close it.

Is there some other way in which the window can decide not to call the delegate's windowWillClose method (other than setting the window's delegate to nil)?


Neil Earnshaw
Consultant Software Engineer
Object Software Engineers Ltd
email@hidden
Tel : 01747 854 852
Mbl : 07870 209 102
_______________________________________________
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.

  • Follow-Ups:
    • Re: Delegate methods[SOLVED]
      • From: Neil Earnshaw <email@hidden>
  • Prev by Date: Table column resize cursor in drawer
  • Next by Date: Re: Cocoa Speech Wrapper?
  • Previous by thread: Table column resize cursor in drawer
  • Next by thread: Re: Delegate methods[SOLVED]
  • Index(es):
    • Date
    • Thread