Pedro Vieira
Pedro Vieira

Reputation: 3370

How to show multiple 'clones' of a custom NSWindow

I want to do something like the "New" on the TextEdit app.
Every time you press cmd+n or you click on "New" a new window appears and you can do this multiple times.
How to achieve something like this? I've tried using NSWindowController but I can only show 1 Window at a time when i call [windowController showWindow:nil];.

Upvotes: 1

Views: 224

Answers (1)

user149341
user149341

Reputation:

It sounds as though what you are trying to build is a document-based application (which will automatically manage a window for each open document).

Read Apple's Document-Based App Programming Guide for Mac for details.

Upvotes: 1

Related Questions