Re: Prevent application activation after dragging items to the Dock icon?
Re: Prevent application activation after dragging items to the Dock icon?
- Subject: Re: Prevent application activation after dragging items to the Dock icon?
- From: Peter Maurer <email@hidden>
- Date: Tue, 18 Mar 2008 14:35:58 +0100
[applicationShouldHandleReopen:hasVisibleWindows:] means "clicked on
its icon in the Dock". I.e the actions that are used to launch an
app with no documents. It does not apply to opening documents, even
if the Dock is involved.
Indeed. And I think this one is more about "What happens when my
application becomes active?" -- rather than "Should my application
activate?"
Anyway, another thing I tried was overriding [NSApp
activateIgnoringOtherApps:], depending on whether there was an [[NSApp
delegate] openFile(s):] message before. That didn't help either.
Activation doesn't seem to be something the application decides on in
these cases.
So if I understand Jens's response correctly, it seems all I'm left
with is monitoring the frontmost application, and re-activating that
application after my application has become active. But that's so ugly
I don't even want to think about it.
Peter.
_______________________________________________
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