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

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.


  • Prev by Date: Re: OpenGL, Objective-C++, and C++
  • Next by Date: Re: erasing, redrawing NSBezierPath into and NSImage problem
  • Previous by thread: Re: Kernel crash
  • Next by thread: Calling AppleScripts from Obj-C
  • Index(es):
    • Date
    • Thread