How to disable NSDocument's window title popup
问题 I have an NSDocument based app with autosave enabled. I'd like to prevent this popup from showing: I have tried returning nil from NSWindow's –title, –representedFilename and –representedURL which hide the title effectively hide the title but have no effect on the downward facing disclosure indicator and the popup. Is there a way I can prevent this popup from being presented? 回答1: I was able to prevent the button from being shown by overriding NSWindow's + (NSButton *)standardWindowButton: