• 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
NSArrayController Selection and Managed Object Context Undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController Selection and Managed Object Context Undo


  • Subject: NSArrayController Selection and Managed Object Context Undo
  • From: Richard Somers <email@hidden>
  • Date: Thu, 06 Oct 2011 01:14:23 -0600

It is very common for Applications to update the selection during undo operations.

By default NSArrayController automatically selects objects as they are inserted. This works if objects are added using one of the controller's add or insert methods. If objects are added directly to the controller content object using other means then this mechanism does not work.

Take for example a NSArrayController with a managed object context for the content. If one or more objects are added to managed object context as the result of an undo, the controller's selection does not change or update.

Is there an easy way to set the controller's selection when an undo operation adds objects back into a managed object context?

--Richard

_______________________________________________

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

  • Follow-Ups:
    • Re: NSArrayController Selection and Managed Object Context Undo
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Calling a script with Xcode 4
  • Next by Date: Re: Writing a simple vector graphics editor - how to implement?
  • Previous by thread: [Moderator] Mourning the passing of Steve Jobs
  • Next by thread: Re: NSArrayController Selection and Managed Object Context Undo
  • Index(es):
    • Date
    • Thread