• 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
Re: window de/activation notifications (was Re: inappropriate tool palette activation problem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: window de/activation notifications (was Re: inappropriate tool palette activation problem)


  • Subject: Re: window de/activation notifications (was Re: inappropriate tool palette activation problem)
  • From: Murat Konar <email@hidden>
  • Date: Fri, 19 Oct 2007 14:17:43 -0700

On Oct 19, 2007, at 1:02 PM, John Richetta wrote:

   1. app receives a deactivate (windowDidResignMain) for document A
   2. app receives a deactivate for document B
   3. app receives an activate (windowDidBecomeMain) for document A
   4. app receives an activate for document B

If one then clicks on document A, one will receive the *exact* same sequence all over again!

I can't fathom why I receive deactivate and activate notifications for both windows, every time one window is clicked once.


I just put together a quick test app and can't reproduce your results.

I'll bet something's up with how you're registering for notifications, maybe you're passing 'nil' for the object parameter? If so, your notification handler will get called whenever ANY window becomes or resigns main.

Here's my test app project:<http://www.muratnkonar.com/source-code/ Windows.zip>

_murat
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: window de/activation notifications (was Re: inappropriate tool palette activation problem)
      • From: John Richetta <email@hidden>
References: 
 >window de/activation notifications (was Re: inappropriate tool palette activation problem) (From: John Richetta <email@hidden>)

  • Prev by Date: Re: Getting list of classes inside NSBundle
  • Next by Date: Re: window de/activation notifications (was Re: inappropriate tool palette activation problem)
  • Previous by thread: window de/activation notifications (was Re: inappropriate tool palette activation problem)
  • Next by thread: Re: window de/activation notifications (was Re: inappropriate tool palette activation problem)
  • Index(es):
    • Date
    • Thread