On Feb 5, 2015, at 13:13 , Raglan T. Tiger <r...@crusaderrabbit.net> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to