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.
- Application is started 1a. Verify CD program is in drive.
- Verify license. If found and is valid, skip to step 7
- Display license agreement.
- Display serial number prompt.
- Verify and save serial number.
- Hide all prior windows.
- Load main application window
- Intercept requests and commands from main application window, including making a duplicate main application window
- 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?