Fork me on GitHub

Does anybody has this issue with Emacs on Mac OS X where you open (double click) a file which is associated with Emacs but it's opened in a completely new window? I'd like to open it in the existing frame. I tried (setq ns-pop-up-frames nil) but didn't work. I'm using 25.3