• 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: 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


  • Follow-Ups:
    • Re: NSWindowControllers and NSWindow
      • From: Bill Cheeseman <email@hidden>
    • Re: NSWindowControllers and NSWindow
      • From: Steve Mills <email@hidden>
    • Re: NSWindowControllers and NSWindow
      • From: Ken Thomases <email@hidden>
References: 
 >NSWindowControllers and NSWindow (From: Dave <email@hidden>)
 >Re: NSWindowControllers and NSWindow (From: Ken Thomases <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