• 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
Table view with NSImageCell scrolls A LOT slower with bindings than with dataSource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Table view with NSImageCell scrolls A LOT slower with bindings than with dataSource


  • Subject: Table view with NSImageCell scrolls A LOT slower with bindings than with dataSource
  • From: Peter Lübke <email@hidden>
  • Date: Sat, 07 May 2011 22:57:24 +0200

Hi all,

I have a table view with all columns bound to keys of an NSArrayController.
The array controller implements some data source methods, mainly for drag and drop support.
One of the columns uses an NSImageCell to display 32 x 32 icons.


Scrolling the table view vertically gets very slow if the icons's column is within the table view's visible portion.
Surprisingly, it gets a lot faster if I implement - tableView:objectValueForTableColumn:row: in the data source (= the array controller).
- tableView:objectValueForTableColumn:row: returns the value for the corresponding key, which is exactly the same key as used by the bindings.


The table view doesn't show this behaviour for its other columns which use the default data cell (NSTextFieldCell).

Any ideas what might be going on here?

Nice weekend to everybody,
Peter
_______________________________________________

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


  • Prev by Date: Communicate Between CocoaAsyncSocket and Java Socket
  • Next by Date: UISegmentedControl and Table View
  • Previous by thread: Re: Communicate Between CocoaAsyncSocket and Java Socket
  • Next by thread: UISegmentedControl and Table View
  • Index(es):
    • Date
    • Thread