• 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
Re: NSWindowControllers and NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSWindowControllers and NSWindow
      • From: Dave <email@hidden>
References: 
 >NSWindowControllers and NSWindow (From: Dave <email@hidden>)
 >Re: NSWindowControllers and NSWindow (From: Ken Thomases <email@hidden>)
 >Re: NSWindowControllers and NSWindow (From: Dave <email@hidden>)
 >Re: NSWindowControllers and NSWindow (From: Ken Thomases <email@hidden>)
 >Re: NSWindowControllers and NSWindow (From: Dave <email@hidden>)

  • Prev by Date: Re: NSWindowControllers and NSWindow
  • Next by Date: Re: NSWindowControllers and NSWindow
  • Previous by thread: Re: NSWindowControllers and NSWindow
  • Next by thread: Re: NSWindowControllers and NSWindow
  • Index(es):
    • Date
    • Thread