• 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
Inefficient drawing - NSTableView + NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inefficient drawing - NSTableView + NSArrayController


  • Subject: Inefficient drawing - NSTableView + NSArrayController
  • From: Guy Meyer <email@hidden>
  • Date: Tue, 24 Apr 2007 00:24:41 +0300

I have got an NSTableView bound to an NSArrayController bound to an object (nib owner) variable of to-many relationships (NSMutableArray) KVC complaint.
Each object in the array contains a variable for each table column (using key path).


Everything works as expected.

The issue is that any change to the array (i.e. insertion of object or replacement of an object) forces a redraw of the whole table (verified via Quertz Debug) even if not necessary instead of just redrawing a single row. How can I make the table redraw a single row (using KVC/KVO ).

In addition, currently when there is a need to update a single cell in the table I am replacing the object in the array using (replaceObjectIn<Key>AtIndex:withObject:) forcing a whole row notification (which forces a whole redraw of array as described above). How can I make the table redraw a single cell (using KVC/KVO ).

Thanks

Guy


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Inefficient drawing - NSTableView + NSArrayController
      • From: Steve Weller <email@hidden>
  • Prev by Date: Re: Undo Manager
  • Next by Date: SetSystemUIMode disabling Exposé hotkeys
  • Previous by thread: Re: [ANN] Dejal Cocoa categories
  • Next by thread: Re: Inefficient drawing - NSTableView + NSArrayController
  • Index(es):
    • Date
    • Thread