discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclassing NSString?


From: Christian Edward Gruber
Subject: Re: Subclassing NSString?
Date: Tue, 2 Jan 2001 21:24:01 -0500

I would be very very careful about subclassing any Class which is the
interface to a Class Cluster.

regards,
Christian.

----- Original Message -----
From: "Frederic" <address@hidden>
To: <address@hidden>
Sent: Monday, January 01, 2001 7:09 PM
Subject: Subclassing NSString?


> Hi,
>
> I need to create NSString which are unique in memory. (I actually need
> that for performance reasons).
> So I decided to subclass NSString and create a class method
> +(id)keyWithString:(NSString*)keyName which
> looks first in a hashtable to ensure it returns a singleton.
> But when invoking [[MyNSStringSubClass] alloc] initWithString:keyName],
> it fails saying:
> "subclass ASKey should override
> initWithCharactersNoCopy:length:freeWhenDone:"
>
> Is this really necessary and how should I do that?
>
> Thanks in advance,
> Frederic
>
> _______________________________________________
> Discuss-gnustep mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/discuss-gnustep
>
>




reply via email to

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