I am porting a plug-in from 32-bit to 64-bit which is actually in C++. Since Carbon is no longer supported on 64-bit, I have to port some code to Cocoa. 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.
What would the code snippet look like?
If that’s all you need, you may be able to avoid Cocoa by using CFUserNotification APIs instead.