May 12, '04 11:14:00AM • Contributed by: robg
You're probably all familiar with sheets, those "dialog boxes" that slide out of the window that called them -- you'll see them in both Carbon and Cocoa applications when you do things like Print, Save As, etc. When used for Save As (or any other dialog that shows the file system), you can also resize the sheets, which is very handy. However, you also have to sit through the 'dropping from the window title' animation each time a sheet becomes active, as seen in this short movie clip. This can take a bit of time, and if you use sheets a lot, it can get tedious to watch.
Back in October, we ran a hint called Change the smooth window resize speed for Cocoa applications. This hint discussed using the NSWindowResizeTime global preference setting in the Terminal to control the speed of the sheet animation. I think there were a couple things in that hint, though, that caused me (and perhaps others) to miss the real applicability: it only talked about Cocoa apps, and it discussed slowing down, not speeding up, the animation -- it proposed a setting of 2.0 to slow down the animation.
Yesterday, while working on some other stuff, I re-ran the command, but used a much lower setting:
defaults write NSGlobalDomain NSWindowResizeTime .001After quitting and restarting TextEdit, the time required to open and close the sheet changed dramatically, as seen in this 'after' movie of the same file and application. And it's not just Cocoa applications; many Carbon applications, such as Word and Excel, rely on sheets as well.
As pointed out in the original hint, this is a global setting (though the hint explains how to change it for just any one app), and all you have to do is quit and relaunch any given program to activate the new setting in that app. This simple change has made a big difference in the speed of my daily tasks -- I use Save As in Word, Excel, TextEdit, and other apps quite often. Now things just pop into existence, instead of slowly letting me know they're coming. The original hint explains how to set it back to the default by deleting the preference (or you could set it to .2, the default value). And use the original hint's increased value if you want to see what the animation is really doing; there's a lot of small details that get glossed over at the normal speed.