Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Change the smooth window resize speed for Cocoa applications System
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:
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.
    •    
  • Currently 4.20 / 5
  You rated: 5 / 5 (5 votes cast)
 
[15,900 views]  

Change the smooth window resize speed for Cocoa applications | 3 comments | Create New Account
Click here to return to the 'Change the smooth window resize speed for Cocoa applications' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change the smooth window resize speed for Cocoa applications
Authored by: aranor on Oct 30, '03 07:43:59PM

Erm, the key shortcut is Shift-Command-\ (as in backslash). I dunno why it didn't show in the hint.



[ Reply to This | # ]
Change the smooth window resize speed for Cocoa applications
Authored by: RickoKid on Nov 24, '03 06:22:15PM

Great hint. I did an archive and install to upgrade to Panther - and every dialog that appears as a sheet moves painfully slowly out. Is there a default I can change to speed it up?

---


RickoKid



[ Reply to This | # ]
Change the smooth window resize speed for Cocoa applications
Authored by: pendraggon87 on Dec 03, '07 10:28:37AM

I keep my speed on 0.005 and it works very well.



[ Reply to This | # ]