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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to