Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
NSWindow/NSPanel UI-violating question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindow/NSPanel UI-violating question



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.