Place your text field in your window as you would for any regular text field. Then, with the text field selected, go to the “Custom Class” pane in the IB inspector window. It should be set as a NSTextField by default, but you can set it as an “NSSecureTextField” instead. Just save your project and run it, and it will be the same style of field as the hidden answer in plain AS.