Re: -windowdidLoad
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