emacs variable to "open with" in original frame

Struggled for a while to find the answer to this and eventually did

(setq ns-pop-up-frames nil)