• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Prevent application activation after dragging items to the Dock icon?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Prevent application activation after dragging items to the Dock icon? (From: Peter Maurer <email@hidden>)
 >Re: Prevent application activation after dragging items to the Dock icon? (From: Ryan Poling <email@hidden>)
 >Re: Prevent application activation after dragging items to the Dock icon? (From: Jens Alfke <email@hidden>)
 >Re: Prevent application activation after dragging items to the Dock icon? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Prevent application activation after dragging items to the Dock icon? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NSTreeController & NSOutlineView bindings w/ Core Data
  • Next by Date: Re: Setting Web Proxy programmatically
  • Previous by thread: Re: Prevent application activation after dragging items to the Dock icon?
  • Next by thread: Re: Prevent application activation after dragging items to the Dock icon?
  • Index(es):
    • Date
    • Thread