Skip navigation.
 
mlRe: why are private classes private?
FROM : James Gregurich
DATE : Fri Jan 03 19:02:04 2003

good, precise answer.

Question: could there be implemented a way to subclass NSColor that
will work with the private subclasses of NSColor? that is a annoying
drawback of the design.


-James

On Friday, January 3, 2003, at 12:43  PM, Mike Ferris wrote:

> The answer to what it would hurt is "the flexibility of the
> framework".  Public API is immutable.  Private API can be changed if
> necessary.  For example, there used to be many many concrete
> subclasses of NSString.  They were all private and that meant that
> when CoreFoundation came along, all those private classes could be
> dumped in favor of a new one that interfaced with CFString.  Nobody's
> Cocoa code broke even though some pretty major changes were made.  If
> folks knew about and were using things like
> NSCheapMutableStringWithGap (or whatever) directly, this change could
> not have been done nearly as simply.
>
> This sort of thing goes on all the time.
>
> Mike


thanks,
James Gregurich


Related mailsAuthorDate
mlsubclassing a private subclass James Gregurich Jan 2, 16:07
mlRe: subclassing a private subclass John C. Randolph Jan 2, 16:19
mlRe: subclassing a private subclass James Gregurich Jan 2, 19:03
mlRe: subclassing a private subclass Finlay Dobbie Jan 3, 04:37
mlwhy are private classes private? James Gregurich Jan 3, 05:56
mlRe: why are private classes private? Finlay Dobbie Jan 3, 06:21
mlRe: why are private classes private? Clark S. Cox III Jan 3, 06:21
mlRe: why are private classes private? Mike Ferris Jan 3, 09:44
mlRe: subclassing a private subclass John C. Randolph Jan 3, 17:04
mlRe: subclassing a private subclass John C. Randolph Jan 3, 17:07
mlRe: why are private classes private? James Gregurich Jan 3, 19:02
mlRe: why are private classes private? Finlay Dobbie Jan 4, 04:21
mlRe: why are private classes private? Eric Peyton Jan 4, 05:53
mlRe: why are private classes private? Gregory Seidman Jan 4, 07:55
mlRe: why are private classes private? Kenneth C. Dyke Jan 4, 12:26
mlRe: why are private classes private? Mike Ferris Jan 6, 08:12