• 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: -windowdidLoad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -windowdidLoad


  • Subject: Re: -windowdidLoad
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 05 Feb 2015 21:53:52 +0000

On Feb 5, 2015, at 13:13 , Raglan T. Tiger <email@hidden> wrote:
>
> What does [super windowDidLoad} accomplish in the subclass implementation of -windowDidLoad and is it necessary?

If “the subclass” is a direct subclass of NSWindowController, then it does what the NSWindowController class reference says it does:

> "The default implementation does nothing.”


However, it’s possible you might insert another class between the subclass and the base class in the future, and invoking the ‘super’ method protects you against inadvertently creating a bug when doing so.

Also, more or less the same point, it relieves your subclass from knowing exactly what it’s a subclass of.


_______________________________________________

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: 
 >-windowdidLoad (From: "Raglan T. Tiger" <email@hidden>)

  • Prev by Date: -windowdidLoad
  • Next by Date: Re: Self describing NSObjects.
  • Previous by thread: -windowdidLoad
  • Next by thread: Show count of Core Data to-many relationship in NSTableView cell with bindings?
  • Index(es):
    • Date
    • Thread