Re: A window that rejects focus
Re: A window that rejects focus
- Subject: Re: A window that rejects focus
- From: "Kyle Sluder" <email@hidden>
- Date: Tue, 19 Feb 2008 20:51:01 -0500
On Feb 19, 2008 8:30 PM, John Stiles <email@hidden> wrote:
>
> Actually, I'm trying to redo it now to be more sheets-friendly so I don't
> have to do this, and it's coming along better than I expected, but I want a
> backup plan.
I'm sure if you get it working you'll have happier users. And if you
don't, nobody like me can come along and whine.
> What do you mean by "trapping click events"? You mean, subclassing
> NSWindow and overriding every -mouse*: method? That seems pretty
> heavy-handed… and I'm honestly not sure that it would do what I was asking.
> I am not sure that it would keep the window from coming forward.
I was talking about overriding -[NSWindow sendEvent:] and trapping all
mouse events, and, based on the "global" state, either calling super's
implementation if the window should be useable or just shortcutting to
the bit-bucket if it shouldn't.
As for preventing ordering to the front, I'm not sure how the order of
events happens, but it seems like you should be able to override
-[NSWindow orderWindow:relativeTo:] to provide special logic.
--Kyle Sluder
_______________________________________________
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