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: Fri, 15 May 2009 21:36:41 +1000
On 15/05/2009, at 9:24 PM, Kyle Sluder wrote:
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.
Ok. I think we're misunderstanding each other. I'll rewind a bit and
thanks for you patience.
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?
Nearly. You got the first bit right. The column's "selected Index" is
bound to the property on the datasource (self.selectedTransferIndex)
not the ArrayController. The ArrayController is only providing content
and content values.
I suppose in a nutshell the question is this.
How can NSTableDataSource be used to make a column of NSPopupCell's
display a particular value from their array of values?
_______________________________________________
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