• 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: Make sheets open instantly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make sheets open instantly


  • Subject: Re: Make sheets open instantly
  • From: Joar Wingfors <email@hidden>
  • Date: Tue, 19 Jan 2010 19:14:08 -0800

For developers it's typically preferable to pass debug user default values as arguments to your executable from within Xcode. Select "Project > Edit Active Executable" in Xcode, and go to the Arguments tab. Hit the plus button to add a new argument:

	-NSWindowResizeTime 0.1

When you launch the app (or in this case unit test) from Xcode, the argument would be passed along and set in the user defaults of the new process.

j o a r


On 19 jan 2010, at 16.43, Mark Allan wrote:

> This also works on a per-application basis.  Just replace NSGlobalDomain with your app's bundle identifier.  For example, to speed up sheets in Preview.app, use the following:
>
> defaults write com.apple.preview NSWindowResizeTime .001
>
> On 18 Jan 2010, at 11:53 pm, Warren Dodge wrote:
>
>> On Jan 18, 2010, at 2:43 PM, David Catmull wrote:
>>> Is there any way to make sheets open instantly, instead of animating? I'd just like to speed up my unit tests.
>>
>> Hi David,
>> If you run the following before launching your app, you'll get speedy sheets.
>> defaults write NSGlobalDomain NSWindowResizeTime .001
>>
>> Return to normal with
>> defaults delete NSGlobalDomain NSWindowResizeTime

_______________________________________________

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

References: 
 >Make sheets open instantly (From: David Catmull <email@hidden>)
 >Re: Make sheets open instantly (From: Warren Dodge <email@hidden>)
 >Re: Make sheets open instantly (From: Mark Allan <email@hidden>)

  • Prev by Date: Re: MKPinAnnotationView callout behind other pins
  • Next by Date: Re: NSDictionary trouble
  • Previous by thread: Re: Make sheets open instantly
  • Next by thread: Re: Make sheets open instantly
  • Index(es):
    • Date
    • Thread