Possible Delegate Problem
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.