Hi Riccardo,

Am 11.07.2025, 15:17:25 schrieb Riccardo Mottola <riccardo.mott...@libero.it
>:

>
> Shouldn't thus the method called on the subclass still return a valid
> subclass and not the superclass?
>
> Could it be a header issue? we define it as:
> + (NSCharacterSet*) characterSetWithCharactersInString: (NSString*)aString;
>
> maybe it should return instancetype?
>

I had changed these return types from id to NSCharacterSet in
https://github.com/gnustep/libs-base/pull/501, because that is what the
implementation returns by calling „copy“ on the created set before
returning. This matches Apple platforms both in the implementation and
header declaration.

Frederik

Reply via email to