Re: Slow scrolling after NSPopup implementation
Re: Slow scrolling after NSPopup implementation
- Subject: Re: Slow scrolling after NSPopup implementation
- From: Kyle Sluder <email@hidden>
- Date: Fri, 15 May 2009 07:24:27 -0400
On Fri, May 15, 2009 at 7:10 AM, Steven Hamilton <email@hidden> wrote:
> Hmm, so we're saying that -tableView:willDisplayCell:forTableColumn:row:
> cannot be used to set the value I want displayed in an NSPopupCell in a
> column? I must use -tableView:willDisplayCell:forTableColumn:row: instead
> which, as far as I can see, will be called just as often.
I am saying no such thing. Please restrict your interpretation of my
replies as applying solely to the performance characteristics and
correctness of the approach you originally provided, namely that is is
slow and potentially incorrect.
> I'm also not relying on having the columns called in order. I can't see
> where you can see that but perhaps it was in my explanation. The popup is
> also not setting any content via bindings. It's done manually via the -
> (void)tableView:(NSTableView *)tableView setObjectValue:(id)newValue
> forTableColumn:(NSTableColumn *)tableColumn row:(int)row method.
In your first post you said you bound the table column to an
NSArrayController. And in your data source code you're setting a
property to which your array controller's selectionIndexes property is
bound, with the goal of selecting the correct item in the pop up list.
Correct?
--Kyle Sluder
_______________________________________________
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