I have one window in a Cocoa-Document based application. I want to make this application have no titlebar. I know how to do this in a regular Cocoa app because there is a window called "window" in Cocoa-Document based apps I don't see any window declarations. So my question is how to I make a borderless window in a Cocoa Document_based app? Thanks
2 Answers
1
votes
0
votes
An NSDocument
[subclass] has an NSWindowController
between the document and the document's window. Typically, you'd subclass in NSWindowController
to, say, create a document that has multiple windows.
In this case, you'll likely subclass NSWindowController
to customize the creation of your window. Or you could subclass NSWindow
and have your document use your subclass instead of the generic NSWindow
.
See the Document-Based Application guide. The FAQ contains overview information on subclassing and the role of NSWindowController
.