• 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: Slow scrolling after NSPopup implementation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Slow scrolling after NSPopup implementation (From: Steven Hamilton <email@hidden>)
 >Re: Slow scrolling after NSPopup implementation (From: Kyle Sluder <email@hidden>)
 >Re: Slow scrolling after NSPopup implementation (From: Steven Hamilton <email@hidden>)
 >Re: Slow scrolling after NSPopup implementation (From: Kyle Sluder <email@hidden>)
 >Re: Slow scrolling after NSPopup implementation (From: Steven Hamilton <email@hidden>)
 >Re: Slow scrolling after NSPopup implementation (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Is there two streams with CFReadStreamRead happend in two threads?
  • Next by Date: [ANN] KNAppGuide - an open source in-app tutorial framework
  • Previous by thread: Re: Slow scrolling after NSPopup implementation
  • Next by thread: Re: NSOpenPanel listing .app's and Mac OS X executables
  • Index(es):
    • Date
    • Thread