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:27:46 +0700

On Wed, Apr 27, 2011 at 6:23 PM, Banlu Kemiyatorn <address@hidden> wrote:

> Not directly a patch, but probably something like.
> - (void) removeFromSuperview
> {
>        if (_superview == nil) return;
>
>        if ([ [_superview subviews] containsObject:self] == NO) return;

       if ([ [_superview subviews] containsObject:self] == NO)
{_superview = nil; return;}


> I didn't test this.. should work...

obviously not!

--
    .----.     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]