sheet without dock icon bounce?
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.