[Top][All Lists]
[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.
>
>
>
- Re: remove -removeSubview:, (continued)
- Re: remove -removeSubview:, Quentin Mathé, 2011/04/27
- Re: remove -removeSubview:, Wolfgang Lux, 2011/04/27
- Re: remove -removeSubview:, Banlu Kemiyatorn, 2011/04/27
- Re: remove -removeSubview:, Wolfgang Lux, 2011/04/27
- Re: remove -removeSubview:, Banlu Kemiyatorn, 2011/04/27
- Re: remove -removeSubview:, Wolfgang Lux, 2011/04/27
- Re: remove -removeSubview:, Banlu Kemiyatorn, 2011/04/27
- Re: remove -removeSubview:, Quentin Mathé, 2011/04/27
- Re: remove -removeSubview:,
Banlu Kemiyatorn <=
- Re: remove -removeSubview:, Quentin Mathé, 2011/04/28
- Re: remove -removeSubview:, Banlu Kemiyatorn, 2011/04/28
- Re: remove -removeSubview:, Banlu Kemiyatorn, 2011/04/27
- Re: remove -removeSubview:, Banlu Kemiyatorn, 2011/04/28
- Re: remove -removeSubview:, Quentin Mathé, 2011/04/28
- Re: remove -removeSubview:, Banlu Kemiyatorn, 2011/04/28