• 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: Changes to Core Data in iOS 8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changes to Core Data in iOS 8


  • Subject: Re: Changes to Core Data in iOS 8
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 23 Sep 2014 20:26:16 -0700

On Sep 23, 2014, at 4:24 PM, Rick Mann <email@hidden> wrote:
>
> In iOS 7, my app works fine. In iOS 8, deleting an entity eventually works, but whereas in iOS 7 my UI would update and show the change, the change doesn't seem to have "taken hold" by this time in iOS 8.
>
> Basically, when the user deletes an entity, I delete it from the MOC (main thread), then mark my custom view as needing display. Its -drawRect: is called, but when it asks the owning entity for the set of related entities it draws, that set comes back with the deleted items still present (although they return true for -isDeleted).
>
> When a later event causes the custom view to refresh again, the entity representations finally go away.
>
> Has something changed in delete propagation between iOS 7 and 8?

Have you checked the value of your MOC’s propagatesDeletesAtEndOfEvent property on iOS 7 and iOS 8?

But more fundamentally, why aren’t you listening for NSManagedObjectContextObjectsDidChangeNotification to trigger your UI updates?

--Kyle Sluder

_______________________________________________

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: Changes to Core Data in iOS 8
      • From: Rick Mann <email@hidden>
References: 
 >Changes to Core Data in iOS 8 (From: Rick Mann <email@hidden>)

  • Prev by Date: Strange and interesting text rendering phenomenon in UITextField with auto layout
  • Next by Date: NSLinguisticTagger
  • Previous by thread: Changes to Core Data in iOS 8
  • Next by thread: Re: Changes to Core Data in iOS 8
  • Index(es):
    • Date
    • Thread