windowWillClose blues
windowWillClose blues
- Subject: windowWillClose blues
- From: a984984 <email@hidden>
- Date: Mon, 5 Jul 2004 23:11:39 -0700
standard doc based cocoa app.
have a periodic timer in doc window.
need to invalide it before the window gets closed because the timer
sends messages to that window.
Implementing windowWillClose in the delegate object works perfectly
fine for me.
----
Now add a drawer that uses original window as its parent. All of the
sudden
windowWillClose in the original delegate object (used now as delegate
in both main and drawer) NEVER gets invoked. If fact no method I can
think of is called. HGrh?
Define another object with windowWillClose and used it as a delegate
for the drawer. No difference. Neither windowWillClose gets called when
closing the window. Simply disconnecting parent window connection
restores windowWillClose mechanism. Playing with dynamically setting
delegates doesn't help either. What gives?
Any suggestions? I see two possibilities - custom drawer class or
messing with notification (center?) mechanism?
Or better yet - how do you intercept messages that you are unable to
catch in the first place in the debugger?
_______________________________________________
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.