File > New, show window to input values?

Discussion in 'Mac Programming' started by MythicFrost, Feb 19, 2012.

  1. macrumors 68040

    MythicFrost

    #1
    Hey,

    I'm just starting to look at the File Menu in my app, and I've successfully added in code to show an open panel when you click File > Open, however I'm wanting to do this with File > New, but I'm not sure what to do yet.

    Is there a built in class I can use for taking input? There's literally only a couple of things I need on it.

    If not, would the right way to go about this be to create a new window and add a view to it and then display it? I've never added another window in an app before.

    Appreciate any advice.
     
  2. macrumors 68000

    Sydde

    #2
    I would suggest you learn how to code a document-based application. Understanding how to use NSDocument, as well as NSDocumentController is very useful stuff to know. Some, most or all of what you want to do can be completely abstracted away using document architecture.

    Apple's Document Based Application Guide
     
  3. macrumors 68040

    MythicFrost

    #3
    I see, thanks for the link!
     

Share This Page