Skip navigation.
 
mlRE: How can I implement labels without the overhead of an NSTextField?
FROM : Jonathan E. Jackel
DATE : Sun Dec 12 23:54:52 2004

> > Presumably you are simply using [string drawAtPoint:withAttributes:] or
> > [string drawInRect:withAttributes:] or the equivalent methods in
> > NSAttributedString.  The AppKit string drawing methods are not intended
> > for drawing and redrawing lots of strings.  They are fine for a few
> > static labels, but not for a huge number of labels that have to be
> > redrawn a lot.
>
> What are you talking about? I was just dragging NSTextViews from
> the palette. The ones that looks like labels. Hence my complaint
> that all of the labels were NSTextViews.


Well, that may be your problem.  NSTextViews are fairly expensive objects.
You want to use NSTextFields (although maybe you are doing that already and
just don't know the difference?).

> I am not interested in how they work, I just want to get them
> going as soon as possible.


You will get nowhere fast on this list with that attitude.

Jonathan

Related mailsAuthorDate
mlRe: How can I implement labels without the overhead of an NSTextField? vastudent Dec 12, 21:35
mlRE: How can I implement labels without the overhead of an NSTextField? Jonathan E. Jackel Dec 12, 23:54
mlRe: How can I implement labels without the overhead of an NSTextField? Douglas Davidson Dec 13, 00:07