Change the smooth window resize speed for Cocoa applications
Oct 29, '03 09:39:00AM • Contributed by: aranor
Oct 29, '03 09:39:00AM • Contributed by: aranor
Cocoa applications have a really easy way to automatically do a smooth resize, going from one size to another with this nice sliding action. For an example, go to Safari and enable/disable the address bar (Shift-Command-\)
By default, the speed of this resize is .2 seconds for every 150 pixels. However, there is a really easy way to change this speed. Simply go to the terminal and type this:
Of course, this can be configured on an application-by-application basis. The NSGlobalDomain in the code above means for all applications, but if you replace that with the application signature for a specific application (ex: defaults write com.apple.Safari NSWindowResizeTime x.x for Safari) then you can adjust the value on a per-application basis. To delete the value (i.e. go back to the default), just type the following:
defaults write NSGlobalDomain NSWindowResizeTime x.x
What this does is set the time for every 150 pixels of resizing. A good value to see this is 2.0. That means two seconds for every 150 pixels resized. Just quit Safari, type that into the Terminal with 2.0 in the spot that says x.x, launch Safari, and hide/show the address bar. Much slower now :)
Of course, this can be configured on an application-by-application basis. The NSGlobalDomain in the code above means for all applications, but if you replace that with the application signature for a specific application (ex: defaults write com.apple.Safari NSWindowResizeTime x.x for Safari) then you can adjust the value on a per-application basis. To delete the value (i.e. go back to the default), just type the following:
defaults delete NSGlobalDomain NSWindowResizeTime
Of course, if you've changed it on a per-application basis, you'll have to replace NSGlobalDomain with the application signature you've changed.
•
[16,116 views]
