Re: NSWindowControllers and NSWindow
Re: NSWindowControllers and NSWindow
- Subject: Re: NSWindowControllers and NSWindow
- From: Dave <email@hidden>
- Date: Mon, 16 Feb 2015 19:20:24 +0000
Thanks, I solved it, the File’s Owner didn’t take for some reason, I did it again and it seems to work ok now.
However, I’m guessing that something isn’t right, since I now get two warnings -
/path/LTWMainWindow.xib: The initial position of this window is outside of this machine's screen.
and
/path/LTWMainWindow.xib: Frame for "Clip View" will be different at run time.
Not sure what it’s trying to tell me, but I’m guessing that something isn’t wired correctly, although it seems to work fine.
Thanks a lot
Dave
> On 16 Feb 2015, at 18:32, Bill Cheeseman <email@hidden> wrote:
>
>
>> 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
_______________________________________________
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