Re: displaying a sheet without having the icon bouncing
Re: displaying a sheet without having the icon bouncing
- Subject: Re: displaying a sheet without having the icon bouncing
- From: Ryan Stevens <email@hidden>
- Date: Fri, 7 Mar 2003 07:46:23 -0800
This is actually pretty easy to do...
Subclass NSApplication and override requestUserAttention:.
Another problem you might run into is if the user tries to quit the
application while your sheet is displayed. If that is allowed you'll
want to override terminate: as well so that you can close the sheet and
then call super.
HTH!
On Thursday, March 6, 2003, at 09:13 AM, olivier wrote:
I display a sheet that basically state that my application is waiting
on another application. when everything is setup, i dismiss the sheet
automatically. Everything works fine except that when i display the
sheet, my icon bounces requesting user attention. Which is not really
what i want. I display the sheet so that if the user is here he knows
that i'm working hard for him, but if he is doing something else, i do
not need his attention.
To display the sheet i use the NSApplication method:
- (void)beginSheet:(NSWindow *)sheet modalForWindow:(NSWindow
*)docWindow modalDelegate:(id)modalDelegate
didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo
Is there a way to do what i want? namely display a sheet without asking
for the user attention.
_______________________________________________
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.