• 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: 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


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: Slow scrolling after NSPopup implementation
  • Next by Date: Re: NSOpenPanel listing .app's and Mac OS X executables
  • Previous by thread: Re: Slow scrolling after NSPopup implementation
  • Next by thread: Re: Slow scrolling after NSPopup implementation
  • Index(es):
    • Date
    • Thread