Re: NSWindowControllers and NSWindow
Re: NSWindowControllers and NSWindow
- Subject: Re: NSWindowControllers and NSWindow
- From: Dave <email@hidden>
- Date: Mon, 16 Feb 2015 15:24:36 +0000
Hi Ken,
Thanks for this, it seems to be saying there is no need for a separate Window Subclass and that the Window Controller Subclass contains all the code needed to drive the window. I’m a bit confused of when to use an NSWindow and when to use and NSWindowController?
The way I had thought to do this was to have:
LTWMainWindowController.h, .m and .xib files and LTWMainWindow.h, .m and .xib files.
Is this the best approach? Or it is better to put the code in the LTWMainWindow.h, .m and .xib files directly into LTWMainWindowController?
Or instead of using NSWindowController and NSWindow should I be using NSWindowController and NSViewController?
I’m really confused how to lay this out and want to start off on the right foot.
Cheers
Dave
> On 16 Feb 2015, at 14:27, Ken Thomases <email@hidden> wrote:
>
> On Feb 16, 2015, at 8:17 AM, Dave <email@hidden> wrote:
>
>> I’ve just started a new Application and I”m wondering what the best/standard way of setting it up.
>
> I recommend that you follow the advice in this article: <https://www.mikeash.com/pyblog/friday-qa-2013-04-05-windows-and-window-controllers.html>.
>
> Cheers,
> Ken
>
_______________________________________________
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