Creating a Multiwindowed Cocoa Program - Launching Procedure Suggestions?

Posted by Jeffrey Kern on Stack Overflow See other posts from Stack Overflow or by Jeffrey Kern
Published on 2010-05-30T01:47:34Z Indexed on 2010/05/30 1:52 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

I'm porting an application I developed in Visual Studio 2008 over to Cocoa. I'm currently doing a 'learn-as-you-go' approach to Cocoa, so I can experiment with different ideas and techniques in smaller, simpler projects and eventually combine them into one big application.

My program logic is as follows (in a dumbed-down sense). Items in the list are mandated by my boss.

  1. Application is started 1a. Verify CD program is in drive.
  2. Verify license. If found and is valid, skip to step 7
  3. Display license agreement.
  4. Display serial number prompt.
  5. Verify and save serial number.
  6. Hide all prior windows.
  7. Load main application window
  8. Intercept requests and commands from main application window, including making a duplicate main application window
  9. Exit program when requested by user

What would the best bet be for this type of application? From another question I asked, I found out that I should keep the 'main application' window in a separate XIB file from the rest, because I might need to clone and interact with it.

I know that since Cocoa and Objective-C is based off of C, there is a Main method somewhere. But what would you all suggest as a starting place for an application like this?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa