gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: remove -removeSubview:


From: Banlu Kemiyatorn
Subject: Re: remove -removeSubview:
Date: Fri, 29 Apr 2011 01:46:17 +0700


> > - (void) willRemoveSubview: (id)subview
> > {
> >     [_subviews removeObject:subview];
> > }
>
> This looks like a bad idea, because NSView methods such as -willXXX or
> -didXXX are all delegate-like methods to be "implemented" in the
> subclass (you don't have to worry about calling 'super').

I think that super must always be called unless the apple doc state that "The default implementation does nothing." in the discussion part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]