Sam H
Sam H

Reputation: 976

How would I create a new NSWindow via Objective-C?

I would just like to know how to create ("instance") a new NSWindow in a Mac OSX application via it's Objective-C code.

Upvotes: 3

Views: 3062

Answers (1)

John Parker
John Parker

Reputation: 54445

Have you taken a look at the "Creating Windows" section of the NSWindow class reference - it tells you pretty much all you need to know about creating windows programmatically.

Additionally, there's quite a bit of sample code (see the "Related sample code" section at the top of the above link) if you're after examples.

Upvotes: 4

Related Questions