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

NSWindow questions


  • Subject: NSWindow questions
  • From: Developer <email@hidden>
  • Date: Fri, 12 Apr 2002 14:50:36 -0400

I am trying to get notifications when windows become active. I'm getting
confused and have a couple of questions. This is an NSDocument app.

1. What is the difference between "Key" and "Main"?

3. if I then click on the top window I get windowDidResignKey and
windowDidBecomeKey and windowDidBecomeMain. This is all as expected. If I
then click back on the first window I only get a windowDidResignKey. Why
did I not get the window I just clicked on sending a windowDidBecomeKey?

3. From this point on when I switch back and forth between windows I get no
notifications. Why?

I need to know when the windows change so that I can unregister and
reregister my own notifications so that they only get posted for the current
window and not both. Is there a better way to handle that?

Thanks in advance.

Mark
--
Mark Steinberg
Textile Technologies
http://www.textiletech.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSWindow questions
      • From: Developer <email@hidden>
    • Re: NSWindow questions
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Problems with image cell in table view (was: Re: NSImage -isValid not always right?)
  • Next by Date: Re: NSWindow questions
  • Previous by thread: NSMutableAttributedString and setting font attributes
  • Next by thread: Re: NSWindow questions
  • Index(es):
    • Date
    • Thread