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
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?
© Stack Overflow or respective owner