• 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/NSPanel UI-violating question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindow/NSPanel UI-violating question


  • Subject: NSWindow/NSPanel UI-violating question
  • From: Sailor Quasar <email@hidden>
  • Date: Mon, 30 Jun 2003 13:15:45 -0400

I have an NSWindow and a utility NSPanel in my application (both awakened from the main nib at launch time), along with a companion nib which creates an NSWindow (not the document architecture though) several times throughout execution. What I need is for the utility NSPanel to take the Carbon behavior of palette windows and be always activated and always receiving keystrokes. I've tried overriding the NSWindows so that canBecomeKeyWindow: returns NO, but that while that gives the utility window the correct status, it makes all the other windows permanantly look deactivated. I need the top NSWindow among them to Look active even though it's not receiving keystrokes. I've played around with canBecomeKeyWindow: and canBecomeMainWindow: alot, and I'm beginning to think I'm going to have to sabotage the elegance of Cocoa's event handling by dealing with activation and key events myself, at a level that would approach the old pre-Carbon WNE days. Someone please tell me a better solution!

-- Sailor Quasar, High Codemaster of the Web, scourge of systems
cvs server: Updating Quasar/brain/caffiene
A pepsi
R coke
Email: email@hidden
_______________________________________________
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: Drawing text with NSLayoutManager
  • Next by Date: Re: NSProgressIdicator Image Problems
  • Previous by thread: Subclassing NSControllers
  • Next by thread: NSWindow/NSPanel UI-violating question
  • Index(es):
    • Date
    • Thread