I have a subclass of the NSWindow class without borders, which I use as part of a document-based application. I could not find a way to enable it in the Window menu. Calling setExcludedFromWindowsMenu: does not affect window creation. Any ideas?
NSWindow
setExcludedFromWindowsMenu:
Use -[NSApplication addWindowsItem:title:filename:] and manually add the window to the Window menu. For instance:
-[NSApplication addWindowsItem:title:filename:]
YourBorderlessWindow *window = …; [NSApp addWindowsItem:window title:[window title] filename:NO];