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 <k...@codeweavers.com> wrote: > > On Feb 16, 2015, at 8:17 AM, Dave <d...@looktowindward.com> 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 (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