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 (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