• 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: NSWindowController, owner, "primary window"...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController, owner, "primary window"...


  • Subject: Re: NSWindowController, owner, "primary window"...
  • From: j o a r <email@hidden>
  • Date: Thu, 21 Aug 2008 10:24:57 -0700


On Aug 21, 2008, at 10:12 AM, Negm-Awad Amin wrote:

Probably because the GoF prefers combination over (?) subclassing. Subclassing always discloses parts of the implementation of a class. ("white-boxing") So generally it is a good idea, to look for alternatives for subclassing, esp. delegates.


You are right in that Cocoa programmers often look to other design patterns before choosing to subclass one of the framework provided classes. That said, NSWindowController is one of the classes in Cocoa designed and intended to be subclassed, so that's not a consideration in this particular case.

j o a r


_______________________________________________

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: NSWindowController, owner, "primary window"...
      • From: Negm-Awad Amin <email@hidden>
References: 
 >NSWindowController, owner, "primary window"... (From: Gerd Knops <email@hidden>)
 >Re: NSWindowController, owner, "primary window"... (From: Ken Thomases <email@hidden>)
 >Re: NSWindowController, owner, "primary window"... (From: Gerd Knops <email@hidden>)
 >Re: NSWindowController, owner, "primary window"... (From: Graham Cox <email@hidden>)
 >Re: NSWindowController, owner, "primary window"... (From: Negm-Awad Amin <email@hidden>)

  • Prev by Date: Re: NSWindowController, owner, "primary window"...
  • Next by Date: Re: NSWindowController, owner, "primary window"...
  • Previous by thread: Re: NSWindowController, owner, "primary window"...
  • Next by thread: Re: NSWindowController, owner, "primary window"...
  • Index(es):
    • Date
    • Thread