Create basic window to contain simple plain text?

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.

If you are looking for something like a library script that can be called with various arguments, I recently posted a sample in a recent topic here. Changing the font and color set in the library should be fairly straight-forward, and more tab stops can be added if needed.

Greatly appreciated. Much to digest/learn re NSstuff.