On Mar 19, 2009, at 12:12 AM, Peter Zegelin wrote:

I have an NSTableView in a sheet window. It has one column and a valid dataSource and delegate. There are 128 rows. If I populate the view with Textcells, sliders or popup button cells the tableview scrolls normally, but if I populate the listbox with checkbox cells the scrolling becomes extremely jerky. In the datasource objectValueForTableColumn method I just do the following:

id)tableView:(NSTableView *)tableView objectValueForTableColumn: (NSTableColumn *)tableColumn row:(int)row{
        
        return [NSNumber numberWithInt:0];
}

my datasource/tableview is copied from another project that does exactly the same thing and it scrolls just fine. The console/ debugger etc. show nothing is amiss.

Any suggestions what may be causing the problem?

On NSButton cells added to tables, the default is to have the scaling property set to "Proportionally Down". This *dramatically* slows the rendering speed of the table down. If you select the cell and set the scaling property to "None" you should see an improvement in rendering speed.


Ashley
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to