• 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: Drawing many different strings quickly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing many different strings quickly


  • Subject: Re: Drawing many different strings quickly
  • From: Ben <email@hidden>
  • Date: Mon, 28 Sep 2015 22:11:57 +0100

> On 28 Sep 2015, at 17:08, Jens Alfke <email@hidden> wrote:
>
>
>> On Sep 28, 2015, at 1:41 AM, Ben <email@hidden <mailto:email@hidden>> wrote:
>>
>> When scrolling vertically, there could be up to 100,000 strings to be drawn, horizontally, much fewer, less than 10,000. I'm assuming a maximum grid size of 100 columns and 10k rows. This should be a worst-case assumption.
>
> As various people have said, there is no reason to draw any text that’s outside the dirtyRect passed to your -drawRect: call. So you never need to draw 100k strings at once. I’m confused by your statements in this thread — you do say that you abide by the dirtyRect, so why are you drawing so many strings?
>
>> Unfortunately NSTableView doesn't offer the type of interactions I want. I have filed a radar requesting enhancements.
>
> It’s very customizable. What’s missing for you?

I am sorry for the poor explanations. I hope this clears up my phrasing:

I am only drawing the area requested by the dirtyRect parameter.
I mention the large number of strings since when scrolling I am being asked to draw a larger number of dirtyRect blocks in quick succession. This means a correspondingly larger number of strings to be drawn.

True, they are not all in the same drawRect call, but in sufficiently close proximity that I thought speeding up the largest consumer of cpu time (ie. string drawing) would help the improve the scroll lag.


The biggest thing missing for me in NSTableView is single-cell selection and highlighting. There was also a drawing bug which I filed a radar for.


—

Thank you all for the suggestions though, I will try each of them.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Drawing many different strings quickly
      • From: email@hidden
References: 
 >Drawing many different strings quickly (From: Ben <email@hidden>)
 >Re: Drawing many different strings quickly (From: Quincey Morris <email@hidden>)
 >Re: Drawing many different strings quickly (From: Ben <email@hidden>)
 >Re: Drawing many different strings quickly (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Continue application processing with mouse down on a menu
  • Next by Date: Re: Background Helper app - brings up UI element, needs CMD-C/X/V
  • Previous by thread: Re: Drawing many different strings quickly
  • Next by thread: Re: Drawing many different strings quickly
  • Index(es):
    • Date
    • Thread