Re: disable beginSheet animation

2013-05-16 Thread Peng Gu
It seems that once you changed the speed value, you can't restore it. Other sheets including the open, save panels will use the new value. So in the end, I decided not to do it. > A question: Why do you want a sheet to pop into view instead of acting as users expect? I am willing to trust you hav

Re: disable beginSheet animation

2013-05-16 Thread Fritz Anderson
The documentation says that the default resize period is subject to change between OS releases, and it's possible others will have changed it on their own. (I've run into people who are at war with animations, and would be furious if their settings were undone.) You should collect the value befo

Re: disable beginSheet animation

2013-05-16 Thread Peng Gu
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.1 forKey: @"NSWindowResizeTime"]; [NSApp beginSheet:] [[NSUserDefaults standardUserDefaults] setFloat:0.2 forKey: @"NSWindowResizeT

disable beginSheet animation

2013-05-16 Thread Peng Gu
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