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 3940268
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:23:53+00:00 2026-05-20T00:23:53+00:00

I have been following this tutorial. I’m having conceptual trouble at the point where

  • 0

I have been following this tutorial. I’m having conceptual trouble at the point where an App Controller class is written, and then added and hooked up within Interface Builder.

Adding the AppController Class
The next task is to add an instance of the
new class to the Interface Builder
document and connect the class
outlets.

Create an instance of the
AppController class. In the Interface
Builder Library window, click Classes.
Locate the AppController class. Drag
this class into the document window to
create an instance named App
Controller. Connect the App
Controller’s qcWindow outlet to the
design window. Hold down the Control
key. In the document window, drag from
the App Controller to the Window
object. Select the qcWindow outlet
from the list that appears. Connect
the App Controller’s qcView outlet to
the QC view in the design window. Hold
down the Control key. Drag from the
App Controller to the QC view in the
design window. Select the qcView
outlet from the list that appears.

Specifically, I don’t understand how this App Controller is being used at run-time. All I did was hook up the window and view outlets within IB, and it magically works as if it was being initialized within the applicationDidFinishLaunching:aNotification method of my app delegate. My point is, I’m not using my App Controller class anywhere in my code, and all I’ve done in IB is hook up its outlets, so how does it work?

  • 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-20T00:23:53+00:00Added an answer on May 20, 2026 at 12:23 am

    When your application is launched, a shared instance of NSApplication is created and MainMenu.xib/nib is loaded and its contents (including the main menu itself) are hooked up. During this loading processs, the NSApp instance’s delegate is pointed at your “un-freeze-dried” (unarchived) class, which (among other possible things) can answer NSApp delegate questions and can then begin messaging it (and relying on it for App-wide behavioral customizations).

    One useful aspect of all this is that you can access the delegate from anywhere in your app via [NSApp delegate], which is short for [[NSApplication sharedApplication] delegate]. This is extremely handy for navigating parts of your architecture if you hang them off your app delegate and provide accessors for them (like [[NSApp delegate] fooController]).

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

Sidebar

Related Questions

I having trouble in dividing the HTML frames. I have been using the following
I have been following this tutorial series for OpenGL : GLUT : http://www.lighthouse3d.com/opengl/glut/ I
I'm new to NHibernate... I have been following this NHibernate Tutorial from Gabriel Schenker
I've been following the 'Netbeans E-Commerce tutorial', and have am currently on this step:
I have been following the forgers win32 tutorial, specifically this section as of this
I have been following a tutorial to make Android App Widgets, and I was
I have been learning RESTful webservices following this tutorial http://www.vogella.de/articles/REST/article.html . As I understand,
I've been following this tutorial on how to implement a Silverlight application. The tutorial
I've been following this tutorial (lesson 6) in order to build and deploy a
I've been following alone with this tutorial . Everything is going great, until I

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.