Re: Again: Non-activating Window
Re: Again: Non-activating Window
- Subject: Re: Again: Non-activating Window
- From: Ryan Bates <email@hidden>
- Date: Mon, 16 Feb 2004 09:46:17 -0800
To prevent a window from activating when clicking in a view in the
window, you can implement these methods in an NSView subclass.
- (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent *)theEvent
{
return YES;
}
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
{
return YES;
}
- (void)mouseDown:(NSEvent *)theEvent
{
[NSApp preventWindowOrdering];
}
Hope that helps.
Ryan
On Feb 16, 2004, at 6:19 AM, Stefan Sch|_ler wrote:
I've posted this one a few days ago and unfortunately didn't get an
answer, so I give it another try.
I'm working on a plug-in (MVMailBundle) for Mail with a single window.
Normally, when a window is clicked the appropriate application is
activated. The bundle-window however needs to process mouse-down/up
events without activating Mail.
One solution is to have another (daemon-like) application which owns
the window and interconnect it to the bundle. However, I think
starting a seperate application to keep Mail from activating is not
the best way.
Any Ideas?
Stefan
_______________________________________________
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.
_______________________________________________
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.