• 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: Why is NSTableView scrolling in Cocoa apps so slow?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is NSTableView scrolling in Cocoa apps so slow?


  • Subject: Re: Why is NSTableView scrolling in Cocoa apps so slow?
  • From: Henk Kampman <email@hidden>
  • Date: Thu, 06 Sep 2001 12:44:09 +0200

> From: Andreas Monitzer <email@hidden>
> Date: Wed, 5 Sep 2001 14:24:12 +0200
> To: Henk Kampman <email@hidden>
> Cc: <email@hidden>
> Subject: Re: Why is NSTableView scrolling in Cocoa apps so slow?
>
> On Wednesday, September 5, 2001, at 02:08 , Henk Kampman wrote:
>
>> To get started with Cocoa I decided to port an existing Powerplant
>> application.
>>
>> Everthing works fine but thumb scrolling speed is incredibly slow compared
>> to the Carbon Powerplant version running on MacOSX.
>>
>> Even a simple NSTableView with 1 column and static data scrolls slowly!
>>
>> It looks as if the actual displayed content has little effect on the
>> performance so there must be something else going on.
>
> On scroll, NSTableView permanently polls the data source for getting
> information (count, item at line x). Maybe that method is too slow.
>
> andy
> --
> Discussion forthcoming.

During live scrolling I get at max 2 updates per second.
The NSTableView has 40 visible rows,in other words getting and drawing 40
(short) strings takes aprox. 0.5 seconds.
Thats not slow, thats pathetic!
The Carbon application running on the same hardware (G4/400) and MacOSX is
magnitudes faster.
So this can't be a Quartz issue.
I've also noticed that other Cocoa applications using (large) tables have
the same performance problems with live scrolling.
There must something wrong with the way NSTableView processes/generates
update events during live scrolling.

Any ideas?

Henk


  • Follow-Ups:
    • Re: Why is NSTableView scrolling in Cocoa apps so slow?
      • From: John Hörnkvist <email@hidden>
References: 
 >Re: Why is NSTableView scrolling in Cocoa apps so slow? (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: Dates
  • Next by Date: Re: address of method in a class instance
  • Previous by thread: Re: Why is NSTableView scrolling in Cocoa apps so slow?
  • Next by thread: Re: Why is NSTableView scrolling in Cocoa apps so slow?
  • Index(es):
    • Date
    • Thread