Search code examples
objective-ccocoamacosnswindowdocument-based

Change Window in Cocoa Document-Based Application


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


Solution

  • Look in the document's nib file. In a document-based application, this is often called "MyDocument.xib". You can get rid of the old window and replace it with the type you prefer. Just remember to connected it to the appropriate outlet in File's Owner.