> On Feb 16, 2015, at 12:55 PM, Dave <d...@looktowindward.com> 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 - b...@cheeseman.name

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to