Change document in open window in macOS app
问题 I am writing a document-based application for macOS. I am trying to write a feature that changes the active document in the current window (in order to be able to cycle through the next/previous documents in a folder, the way one can do with image-browser apps). What command should I be calling to open a different document in the current window? The documentation suggests that openDocument might do this, but when I run documentController.openDocument(nextFile!) then I just get an NSOpenPanel