title: Automatically hide toolbar when it is not in use
body: <p>I am creating a Cocoa Application for Mac OS 10.6 >, and I want to hide the toolbar of an NSWindow automatically when it is not in use for at least 30 seconds.
  I think this can be done with NSTimers, but I'm not familiar with them and I don't know how I can implement this.</p>
  
  <p>Another problem is that both the NSToolbarDelegate and NSWindowDelegate protocols don't have delegate methods like <code>toolbarDidShow:</code></p>
  
  <p>Can anyone point me in the right direction? Thanks.</p>
  
  <hr>
  
  <p>PS. This is not to punish the user, but rather give the user a cleaner window (the window consist of only a toolbar for color and font and a text-view).</p>
  
  <hr>
  
  <p>PPS. Can the hide-toolbar-animation lead into a problem with the cursor while the user is typing?</p>