Re: How can I implement labels without the overhead of an NSTextField?
Re: How can I implement labels without the overhead of an NSTextField?
- Subject: Re: How can I implement labels without the overhead of an NSTextField?
- From: Guy English <email@hidden>
- Date: Mon, 13 Dec 2004 09:03:49 -0500
On Mon, 13 Dec 2004 07:37:37 +0000, email@hidden
<email@hidden>
> Okay, I will do as you wish. I picked up a copy of "Cocoa Programming" from the
> bookstore and am reading chapter 14 and others. I will report back when I have either
> found a way to solve my problem or given up.
Cool - it's a good book and will help a lot.
If your labels change infrequently and are arranged in an aritrary
layout (not column and rows) you may want to simply throw a little
memory at the problem. You could make a bitmap (NSImage) big enough to
hold all the labels, draw them into that (using NSAttributedString
drawAtPoint: ) then scroll around this big bitmap. It'll be much
faster and probably a less time consuming optimization than doing the
glyph drawing yourself.
Maybe that'll help a little.
Guy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden