My bad! That didn't solve the problem that some cocoa app may want to implement it and the code must check if super have it implemented or not.
On Wed, Apr 27, 2011 at 6:41 PM, Wolfgang Lux <[email protected]> wrote: > Banlu Kemiyatorn wrote: > >> Then a subclass must not override -removeSubview: without [self >> removeSubview:aView]; I raised this coz I saw some code that subclass >> removeSubview: w/o calling super's. >> >> http://developer.apple.com/library/mac/#samplecode/SourceView/Listings/MyWindowController_m.html > > I guess you should have read the code more carefully. This is a window > controller class and not a view class. It can't call [super removeSubview: > aView], since NSWindowController doesn't implement -removeSubview:. > > Wolfgang > > -- .----. Banlu Kemiyatorn /.../\...\ 漫画家 |.../ \...| http://qstx.blogspot.com (Free Software Advocacy & Development) |../ \..| http://feedbat.blogspot.com (Studio Work For Hire) \/ \/ http://groundzerostudiocomplex.blogspot.com (Studio Research) _______________________________________________ Gnustep-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev
