Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 815251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:39:17+00:00 2026-05-15T01:39:17+00:00

I’m porting an application I developed in Visual Studio 2008 over to Cocoa. I’m

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:39:18+00:00Added an answer on May 15, 2026 at 1:39 am

    So some of this comes down to organization. Like Julien mentioned, you’ll want a YouappnameApplicationDelegate class – in fact, Xcode will create and set this up for you when you create a project.

    implement the applicationDidFinishLaunching method (which also should be provided by what Xcode gave you), and implement your logic for steps 1 and 2 there (and steps 7, 8, 9).

    Steps 3 thru 5 you’ll probably want to implement in another class. RegistrationWindowController, or something like that. You may even want to create this window in another nib file (not inside the MainMenu.nib file that Xcode gives you). In the YouappnameApplicationDelegation’s applicationDidFinishLaunching method you’d load this nib (see code sample below). That way your code is well organized – which is what Cocoa really guides you to do.

    Ok, so now how to load that new nib file:

    myInstanceVariable = [[RegistrationWindowController alloc] initWithWindowNibName: @"MyNibName"];
    [myInstanceVariable showWindow: self];
    

    RegistrationWindowController should be a subclass of NSWindowController.

    That should take you a pretty long way into your research, hope it does help!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.