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 protected]> 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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
