[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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to