title: beginSheetForDirectory ... Deprecated
body: <p>I have following code which works fine, however when I updated to Lion I started getting warnings that this method has been deprecated and suggests that I use "beginSheetModalforWindow".  How would you translate the following to code to use that?</p>
  
  <pre><code>[savePanel beginSheetForDirectory: NULL
                                   file: fileName
                         modalForWindow: mWindow
                          modalDelegate: self
                         didEndSelector: @selector(savePanelDidEnd:returnCode:contextInfo:) 
                            contextInfo: NULL];
  </code></pre>