• 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: Benefits of subclassing NSWindowController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Benefits of subclassing NSWindowController?


  • Subject: Re: Benefits of subclassing NSWindowController?
  • From: Charilaos Skiadas <email@hidden>
  • Date: Mon, 21 Mar 2005 21:09:48 -0600

On Mar 21, 2005, at 8:37 PM, James McConnell wrote:

Greetings, all. This post comes in light of the recent thread on rewriting
a large project. I am actually getting ready to start on a large project
myself, not rewrite one. It's not document-based, though. It mainly
involves three main sections, each one managing a separate part of the
overall application.


What would be the benefit of subclassing NSWindowController as my
"application controller", or should I just subclass NSObject per usual? I
plan on having three main windows, each doing something separate from the
others, so I plan on having each in their own nib file and controllers. But
I am going to need one main controller to manage some overall aspects of my
application design.


Should I use NSWindowController as my overall controller? What would be the
benefits of doing so? Or should I just use NSObject?

If it's not managing a particular window, then i don't see any reason for it to be an NSWindowController. I would go with subclassing NSObject. (of course, as you know already, you will need three subclasses of NSWindowController for your three windows.)


I can go into more detail about the design and function of my app if it will
help. This is mainly a design question in nature, as opposed to something
specific. Thanks in advance, all.


James

Haris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Benefits of subclassing NSWindowController? (From: James McConnell <email@hidden>)

  • Prev by Date: Re: newbie EXC_BAD_ACCESS
  • Next by Date: Re: storing keyed archives in user defaults
  • Previous by thread: Benefits of subclassing NSWindowController?
  • Next by thread: I am Completly Stumped, NSTableView
  • Index(es):
    • Date
    • Thread