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

Possible Delegate Problem


  • Subject: Possible Delegate Problem
  • From: John Nairn <email@hidden>
  • Date: Mon, 08 Sep 2003 17:07:39 -0600

I have two windows with different types of documents but the first window needs to know if the second one closes. To do this, I made that first window a delegate of the second window and discarded the link in the first window's controller on a windowWillClose notification.

The problem is my application occasionally quits and usually in happens in the process of a normal quit. I suspect that during Quit the first window closes. Then when the second window tries to close it tries to contact a delegate that has disappeared. It makes sense, but even if I close window in an awkward order there is normally no problem. It only unexpected quits once in a while.

The question:

What happens if delegate is released and then an object with that delegate sends messages?

------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page: http://www.eng.utah.edu/~nairn
_______________________________________________
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.

  • Prev by Date: "Default" button is not accepting returns
  • Next by Date: NSUserDefaults causing me fits
  • Previous by thread: Re: NSUserDefaults causing me fits
  • Next by thread: how to pause
  • Index(es):
    • Date
    • Thread