• 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: Negm-Awad Amin <email@hidden>
  • Date: Thu, 21 Aug 2008 19:30:35 +0200


Am Do,21.08.2008 um 19:24 schrieb j o a r:


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


Yup, this was the reason for me to write:
"But, of course, sometimes a subclass is simply the right thing."

Cheers,

Amin Negm-Awad
email@hidden




_______________________________________________

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


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>)
 >Re: NSWindowController, owner, "primary window"... (From: j o a r <email@hidden>)

  • Prev by Date: Re: NSWindowController, owner, "primary window"...
  • Next by Date: Re: [Q] SFPreferenceView and authorize as admin?
  • Previous by thread: Re: NSWindowController, owner, "primary window"...
  • Next by thread: Animation curve is always linear though specified to be S-like
  • Index(es):
    • Date
    • Thread