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

> I see what you mean, but the problem can potentially arise with all
> GNUstep additions, so it's really a border case.  But I agree that it's
> a bit more dangerous than some other additions, since it's a primitive
> method which is called by various other NSView methods on GNUstep.

I'd make a rule that, when possible and making sense, the Cocoa defined methods should just not call any GNUstep additions if there is no real benefit like simpler code or performance.


>
> Just to be on the safe side, a possibility could be to turn
> -removeSubview: into a private method and rename it -_removeSubview:.
> This could complicate customizing the subview management behavior in a
> NSView subclass, but I don't believe so (other hooks such as
> -willRemoveSubview: are available).

I think _ prefix is good enough for this.

> Cheers,
> Quentin.
>
>
>


reply via email to

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