How to implement an alert sheet with an input text field? For example, show an alert sheet to user to input password. I just know the simple usage of NSBeginAlertSheet, and I haven't read any article about my need. Please give me some advice or article reference. Thanks in advance.