• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I implement labels without the overhead of an NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How can I implement labels without the overhead of an NSTextField?
      • From: Henry McGilton <email@hidden>
References: 
 >RE: How can I implement labels without the overhead of an NSTextField? (From: email@hidden)

  • Prev by Date: Re: Kill other process's warning dialog
  • Next by Date: Re: Kill other process's warning dialog
  • Previous by thread: Re: How can I implement labels without the overhead of an NSTextField?
  • Next by thread: Re: How can I implement labels without the overhead of an NSTextField?
  • Index(es):
    • Date
    • Thread