• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: disable beginSheet animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: disable beginSheet animation
      • From: Fritz Anderson <email@hidden>
References: 
 >disable beginSheet animation (From: Peng Gu <email@hidden>)

  • Prev by Date: disable beginSheet animation
  • Next by Date: Re: disable beginSheet animation
  • Previous by thread: disable beginSheet animation
  • Next by thread: Re: disable beginSheet animation
  • Index(es):
    • Date
    • Thread