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: Wed, 27 Apr 2011 18:46:02 +0700

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 <address@hidden> 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)



reply via email to

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