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

_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to