• 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: Weird NSTableView with checkboxes issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird NSTableView with checkboxes issue


  • Subject: Re: Weird NSTableView with checkboxes issue
  • From: Peter Zegelin <email@hidden>
  • Date: Thu, 19 Mar 2009 16:56:45 +1100


Yes not sure what caused it. I have just copied a table and its datasource from another part of my project, which also has a checkbox and it also works fine in my sheet. I'm now gradually changing the datasource to what I want for this table. So far so good.


So problem solved - but I'm not sure what caused the original weirdness.

Peter


On 19/03/2009, at 4:41 PM, Yvonne Du wrote:

Hi, I write a simple project, and put a NSTalbeView in the window, and set the data source to a controller, the implementation of this controller is as following:

@implementation controller

-(int) numberOfRowsInTableView:(NSTableView*)aTableView
{
	return 128;
}

- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn: (NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
{
return [NSNumber numberWithInt:1];
}
@end


it works fine.
--------------------------------------------------
From: "Peter Zegelin" <email@hidden>
Sent: Thursday, March 19, 2009 1:12 PM
To: "Cocoa Development" <email@hidden>
Subject: Weird NSTableView with checkboxes issue

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?

Thanks!

Peter
_______________________________________________

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

_______________________________________________

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


References: 
 >Weird NSTableView with checkboxes issue (From: Peter Zegelin <email@hidden>)

  • Prev by Date: Weird NSTableView with checkboxes issue
  • Next by Date: Re: Weird NSTableView with checkboxes issue
  • Previous by thread: Weird NSTableView with checkboxes issue
  • Next by thread: Re: Weird NSTableView with checkboxes issue
  • Index(es):
    • Date
    • Thread