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 protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to [email protected]
