My end goal of this task is to have renaming feature similar to what Pages and Sketch have
In the storyboard, I added a NSMenuItem, called Rename..., under File and I linked it to an action called renameDocument (which I believe already implemented in Cocoa). I thought that would be enough, but it wasn't. I thought about overriding the rename method, but I think this should be an easy solution because I think a lot of OS X applications have the same renaming features. I searched through Stack Overflow and google and I got no answers.
My question is: Is there a specific UI element in AppKit which allows me to achieve a similar goal to what Pages and Sketches have done?
Thank you in advance