title: Copy/Paste Not Working in Modal Window
body: <p>In my cocoa app I am displaying a NSPanel as a modal 'window' of another NSPanel using:</p>
  
  <pre><code>[modalPanel setWorksWhenModal:YES];
  [[NSApplication sharedApplication] beginSheet:modalPanel modalForWindow:mainPanel modalDelegate:nil didEndSelector:nil contextInfo:nil];
  </code></pre>
  
  <p>This works, however the NSTextField's that show up in that modal 'window' are not allowing copy and paste.</p>
  
  <p>From searching I found the following thread on Cocoabuilder which seems like pretty much the same problem, however there was no solution given in that thread either.</p>
  
  <p><a href="http://www.cocoabuilder.com/archive/message/cocoa/2007/11/6/192462" rel="noreferrer">http://www.cocoabuilder.com/archive/message/cocoa/2007/11/6/192462</a></p>
  
  <p>That thread says to make sure you are not stopping copy/paste by using validation, but this is not the case for me as I currently do not have any validation on any of the fields.</p>
  
  <p>Is there something special I have to do to get this to work, or does anyone have any ideas of what I could check/try?</p>
  
  <p>Thanks!</p>