Re: NSWindowControllers and NSWindow
Re: NSWindowControllers and NSWindow
- Subject: Re: NSWindowControllers and NSWindow
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 16 Feb 2015 13:32:35 -0500
> On Feb 16, 2015, at 12:55 PM, Dave <email@hidden> wrote:
>
> LTWViewController.h and LTWViewController.m, and LTWWindow.xib, then set the file owner in the NIB to “LTWViewController”, how do I then wire up outlets, bindings and actions so that I get properties set in LTWViewController?
Connect the UI element (button, etc.) to its IBOutlet in File's Owner (which should be a window controller, not a view controller), and connect the IBAction in File's Owner to its UI element. Do all of this in your window.xib using any of several techniques outlined in the Xcode/Interface Builder documentation. For example, right-click File's Owner in the left column of the Interface Builder editing pane to open a HUD listing all of its IBOutlets, and drag FROM the little dot to the right of one of the listed IBOutlets TO the UI element's graphical representation in the window. To connect an action, drag FROM the UI element TO File's Owner.
--
Bill Cheeseman - email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden