• 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
NSTableView vertical focus change...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView vertical focus change...


  • Subject: NSTableView vertical focus change...
  • From: Colin Doncaster <email@hidden>
  • Date: Wed, 17 Jan 2007 09:10:23 -0500

I have an NSTableView that has columns that are bound to an ArrayController that controls a Core Data object. I have a button at the bottom of the table that performs the "remove" action on the data and I also have drag and drop set up so I can drag data out of said table into other tables.

There are times when there can be hundreds of entries in the table, which means I have to - say - scroll down to the bottom of the table. When I select an item and use the remove key ( calling the remove action ) the table stays "focused" one the area of the table I'm looking at. When I drag an item out of the table it removes the item but the table is then reset so I'm looking at the very top again - effectively loosing my place.

I think what is happening is the remove is called on the ArrayController thus letting that handle removing the data ( so only the ArrayController is "dirty ) - where when I perform the drag and drop I'm changing a relationship in the Core Data model which makes the ArrayControllers source "dirty" thus causing more work and a reset of the ArrayController's index table. Is there any way around this?

Is this, in fact, what's happening or is there a "don't update on change" toggle somewhere?

thanks.

Also - it would be good to know if there is better terminology for what I'm trying to describe, so I know for the future.
_______________________________________________


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: NSTableView vertical focus change...
      • From: Colin Doncaster <email@hidden>
  • Prev by Date: Re: cloning an NSTableView
  • Next by Date: Re: core data, selected items and undo
  • Previous by thread: HTTP Digest Access Authentication
  • Next by thread: Re: NSTableView vertical focus change...
  • Index(es):
    • Date
    • Thread