Re: Non-activating panel not working
Re: Non-activating panel not working
- Subject: Re: Non-activating panel not working
- From: James DiPalma <email@hidden>
- Date: Sun, 19 Jan 2003 16:33:32 -0800
A non activating panel is described in AppKit release notes: "A
non-activating panel can receive keyboard input without activating its
owning application."
Which does not sound like what you are trying to achieve (a window that
never becomes key).
Panels also have a becomesKeyOnlyIfNeeded method which defaults to YES
for non-activating panels and NO for NSPanels.
NSPanel documentation has this confusing statement: "[a non-activating
panel] becomes key only if the hit view returns YES from
needsPanelToBecomeKey. In this way, a non-activating panel can control
whether it takes keyboard focus."
Any NSPanel instance that returns YES to becomesKeyOnlyIfNeeded should
behave this way. I don't understand why keyboard focus behavior would
depend on a panel's non-activating state.
-jim
On Wednesday, January 8, 2003, at 08:21 PM, Ted Lowery wrote:
I have a toolbar panel in my application. I've set the window in IB
to be a Non activating Panel. It shows the small close buttons, and
no min/max buttons as I would expect. When I click the window, it
accepts my click, and doesn't "appear" to become the key or main
window, ie, my document window keeps it appearance as the main window.
However, my document window doesn't accept the first click, there's
no visible change, but I have to click it the second time before it
recognizes the click.
If I unselect the Non activating Panel checkbox, it acts as expected,
and becomes the key window when clicked.
It's as if the appearance of the Non activating panel is working, but
not the behavior.
Does this checkbox work right? Is there something else I have to do?
_______________________________________________
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.