gnustep-dev
[Top][All Lists]
Advanced

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

Re: Comments on Artlib backend


From: Alexander Malmberg
Subject: Re: Comments on Artlib backend
Date: Wed, 28 Aug 2002 20:03:38 +0200

[snip]
> So the issue should not be whether or not to implement stuff in the gui
> library, but how to implement it in the gui in such a way that it can be
> used by *or* replaced by backends efficiently and easily.

For NSGraphicsContext, this is easy. The backend has to provide a
concrete subclass of NSGraphicsContext anyway, so you just put your
optimized/special version there and the generic one in NSGraphicsContext
will be ignored.

However, doing the same thing with classes like NSAffineTransform or
NSColor would be much trickier, and I don't think that it'd be a good
idea.

- Alexander Malmberg




reply via email to

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