I’m writing a script to query an SQL database and put the results in a simple text window. I’ve tried using apps like TextEdit or Notes but they don’t comply and seem overkill. I just need a simple MacOS window into which I can put aligned text. No images, colors or anything fancy, just text. A sole close button would suffice. And no toolbar. Just a frame, a close button, title and the formatted text.
So ideally the window would have:
- Red X close button in upper left corner (no yellow minimize / green maximize needed)
- Title text (in bold)
- Body text - formatted monospaced font, with Tabs to separate columns and Carriage Returns to separate records
- To specify dimensions might be nice
I need only the Window for temporary viewing, then close and discard the results; no interest in saving to a file.
Digging into NSWindowController…
Thanks in advance for any examples/tips.