title: Simple Cocoa modal window dialog on Mac OS X
body: <p>I am porting a plug-in from 32-bit to 64-bit which is actually in C++. Since <a href="http://en.wikipedia.org/wiki/Carbon_%28API%29" rel="nofollow noreferrer">Carbon</a> is no longer supported on 64-bit, I have to port some code to <a href="http://en.wikipedia.org/wiki/Cocoa_%28API%29" rel="nofollow noreferrer">Cocoa</a>. The only Cocoa help I need is how to create a simple modal window (not a sheet) that has two buttons, OK and Cancel, and gives me a string input from the user. I created a Cocoa nib, but have no clue with Objective-C. I could start learning Objective-C right now, but it takes a while and that's the only code snippet I need right now. </p>
  
  <p>What would the code snippet look like?</p>