• 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
Connections on NSWindowController sub-classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Connections on NSWindowController sub-classes


  • Subject: Connections on NSWindowController sub-classes
  • From: Thomas Wetmore <email@hidden>
  • Date: Wed, 02 Sep 2015 09:29:39 -0400

This question could also go to the Cocoa list, but I’m only asking it here.

This is about something I see when I use Xcode to create a subclass of NSWindowController, and elect to have the corresponding XIB file created at the same time. (Swift, Xcode 6.4, Mac OS X 10.10.5.)

In the IB editor, looking at the new XIB file, the class of the File’s Owner is identified as the new NSWindowController subclass. As expected.

But if I right click on the File’s Owner icon (or the window’s icon), I see two connections already set up:

1. The window’s delegate outlet points to the File’s Owner.
2. The File’s Owner has a window outlet pointing to the window.

My confusion comes from the fact that NSWindowController does not have a window outlet (that I can find documented), nor does the NSWindowController implement the NSWindowDelegate protocol. Why doesn’t the compiler complain about these two things?

As is often the case I may be missing something simple.

Tom Wetmore
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Connections on NSWindowController sub-classes
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Unable to create outlets/connections for NSMenuItems, but other controls work
  • Next by Date: Whoops on First Half of Question
  • Previous by thread: Re: Unable to create outlets/connections for NSMenuItems, but other controls work
  • Next by thread: Re: Connections on NSWindowController sub-classes
  • Index(es):
    • Date
    • Thread