Re: Slow scrolling after NSPopup implementation
Re: Slow scrolling after NSPopup implementation
- Subject: Re: Slow scrolling after NSPopup implementation
- From: Steven Hamilton <email@hidden>
- Date: Tue, 19 May 2009 21:48:03 +1000
Ok. I'm still struggling with this.
My NSTableColumn is bound to an NSArrayController for content and
content values. This works great. My custom controller has the
following code in it to set the popup selection to display for each row.
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
{
if ([[tableColumn identifier] isEqualToString:@"transfer"])
{
NSDictionary *transdic = [self.formattedTransactions
objectAtIndex:row];
int index = [[transdic objectForKey:@"transfer"] intValue];
[aCell selectItemAtIndex:index];
}
}
This works great too.
However, in my setObjectValueForTableColumn method later on I need to
access the selected object in the popup for the particular row. I
can't fetch the NSPopButtonCell (dataCell) from the column as that
only holds the last displayed value. I also can't bind selection of
the column to a property as that slows everything down, and these
tables may end up holding thousands of lines. Am I attempting the
impossible here?
_______________________________________________
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