Re: Weird NSTableView with checkboxes issue
Re: Weird NSTableView with checkboxes issue
- Subject: Re: Weird NSTableView with checkboxes issue
- From: Ashley Clark <email@hidden>
- Date: Thu, 19 Mar 2009 02:50:00 -0500
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 (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