• 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: Ryan Poling <email@hidden>
  • Date: Mon, 17 Mar 2008 09:26:24 -0700

There should be a delegate method you can implement to prevent this from happening. Perhaps the following one, although it doesn't look quite right to me.

applicationShouldHandleReopen:hasVisibleWindows:

-Ryan

<http://www.chimoosoft.com/>


On Mar 17, 2008, at 12:36 AM, Peter Maurer wrote:

Cocoa applications tend to come to the foreground automatically whenever I drag files to their Dock icon. Sometimes, however, I'd prefer my application to stay in the background and just start working on the file, while giving feedback through the Dock icon.

But this isn't supposed to be a background-only process -- ideally, activation behavior would depend on the type of the file(s) I just dragged to the Dock.

(You might think such behavior would confuse users. But I do think it would be useful in situations where users drag lots of items to the application's Dock icon, because they want them to be dealt with sequentially. And this kind of non-standard behavior would certainly only be an option.)

So is anyone aware of a way to prevent an application from activating in these situations -- similar to sending preventWindowOrdering to keep windows in the background after mouse clicks?

Thanks!

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


  • Follow-Ups:
    • Re: Prevent application activation after dragging items to the Dock icon?
      • From: Jens Alfke <email@hidden>
References: 
 >Prevent application activation after dragging items to the Dock icon? (From: Peter Maurer <email@hidden>)

  • Prev by Date: Re: CA: How to wait for an animation to finish?
  • Next by Date: Re: Convert NSString to FSRef
  • Previous by thread: 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