• 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
sheet without dock icon bounce?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sheet without dock icon bounce?


  • Subject: sheet without dock icon bounce?
  • From: Jeff Harrell <email@hidden>
  • Date: Sun, 15 Jun 2003 14:03:03 -0500

I'm writing a little utility that accepts file drags from Finder windows, then posts a window-modal sheet while it processes them. Because of the way the program is used, it's not usually the active application when it receives a drop. When the sheet goes up, the dock icon bounces. I'm wondering if it's possible to keep that from happening.

Here's what I'm doing. I've got an NSPanel that contains my custom sheet. (A text field and a determinate progress bar.) I'm calling [NSApp beginSheet] to post the sheet, then when the background task is done I'm calling [NSApp endSheet] and [panel orderOut]. This part works fine.

According to the docs, beginSheet causes the application to fire off a critical user attention request, which causes the dock icon to bounce until the application is activated. I can't seem to find any information one way or the other about whether it's possible for this request to be avoided altogether or immediately cancelled. (beginSheet doesn't seem to provide any way to get ahold of the request ID, which is a required parameter of cancelUserAttentionRequest.)

Any ideas?

Thanks in advance.

--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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.

  • Prev by Date: IB framework not compatible with Obj-C++ ?
  • Next by Date: Re: Cocoa's custom class delegate conventions
  • Previous by thread: Re: IB framework not compatible with Obj-C++ ?
  • Next by thread: NSFileWrapper Example
  • Index(es):
    • Date
    • Thread