title: Handling User Defaults, Menus and UI
body: <p>This is a conceptual question and I most definitely need some input.</p>
  
  <p><strong>Here's the general (simplified) idea:</strong></p>
  
  <ul>
  <li>I have window layout, with a sidebar and a status bar</li>
  <li>The sidebar and the status bar are toggle-able</li>
  <li>The defaults are being registered at launch</li>
  <li>The current state, when any of them is toggled, is saved in <code>NSUserDefaults</code> (= YES / NO)</li>
  </ul>
  
  <p>The toggle actions actually correspond to <code>NSMenuItem</code>s. So, their content <em>(e.g. "Show Sidebar" - "Hide Sidebar")</em> is actually "bound" to the corresponding value from <code>NSUserDefaults</code> and validated via <code>validateMenuItem:</code>.</p>
  
  <p>Now, here's where it gets more complicated.</p>
  
  <p><strong>When the application starts again :</strong></p>
  
  <ul>
  <li>We read the <code>NSUserDefaults</code></li>
  <li>Is the sidebar <code>ON</code>?</li>
  <li>Depending on the actual design in the XIB (where the sidebar is visible), do nothing</li>
  <li>If it is <code>OFF</code>, then hide it.</li>
  <li>And so on...</li>
  </ul>
  
  <p>Is that the "normal" way to go about this whole thing, or am I missing anything?</p>
  
  <p>I'd be glad to hear your approaches!</p>