• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
main nib, secondary nib, where do the outlets get connected to in the main nib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

main nib, secondary nib, where do the outlets get connected to in the main nib?


  • Subject: main nib, secondary nib, where do the outlets get connected to in the main nib?
  • From: John Spicer <email@hidden>
  • Date: Sat, 24 Jul 2004 10:44:34 -0500

The main file has a menu with items on it. Each item on the menu is connected to the instantiated controller. That controller (in code) has a method that loads the nib file and makes the window the active window (part of this does not work: the window loads and displays but it's not active until you click on it).

So the target is connected from the menu (in the main nib) to the action in the controller class. So far, so good.

However, according to the docs one also creates an outlet in the controller item as well (it's used in loading the nib so it must be needed!)

Where is this outlet connected to in the nib file?

I'm asking for two reasons:

[1] unconnected outlets annoy me, seems they should be hooked to SOMETHING!

[2] it's possible (I don't know) that not having this outlet connected is what's causing the window when loaded to not be the active one.

Am I missing something, perhaps those outlets are just left hanging? I have looked in the archives without luck, perhaps there is some apple sample code that shows this? (not an info window, which I don't think is the same thing - again, I could be wrong).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: main nib, secondary nib, where do the outlets get connected to in the main nib?
      • From: Dustin Voss <email@hidden>
    • Re: main nib, secondary nib, where do the outlets get connected to in the main nib?
      • From: Chuck Soper <email@hidden>
  • Prev by Date: Re: Expression parsing
  • Next by Date: Re: NSOutlineView cells being truncated
  • Previous by thread: Re: authopen or not
  • Next by thread: Re: main nib, secondary nib, where do the outlets get connected to in the main nib?
  • Index(es):
    • Date
    • Thread