Re: disable beginSheet animation
Re: disable beginSheet animation
- Subject: Re: disable beginSheet animation
- From: Peng Gu <email@hidden>
- Date: Fri, 17 May 2013 06:03:45 +0800
Found the answer.
By setting the animation speed to a low value (not 0, otherwise 0.2 is used
by default)
[[NSUserDefaults standardUserDefaults] setFloat:0.00001 forKey:
@"NSWindowResizeTime"];
[NSApp beginSheet:....]
[[NSUserDefaults standardUserDefaults] setFloat:0.2 forKey:
@"NSWindowResizeTime"];
Thanks,
On Fri, May 17, 2013 at 5:50 AM, Peng Gu <email@hidden> wrote:
> How do I disable the animation of [NSApp
> beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo].
>
> Apple document says that "Other sheet behavior, such as the animation
> when it appears and is dismissed, is handled automatically by the
> Application Kit."
>
> Thanks,
> Peng
>
_______________________________________________
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