• 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: [CoreData] Background Insertion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CoreData] Background Insertion


  • Subject: Re: [CoreData] Background Insertion
  • From: "Marcus S. Zarra" <email@hidden>
  • Date: Tue, 5 Jun 2007 15:55:00 -0600

I wonder if it would be possible to see what notification is being sent? If it is a true notification, then you could perhaps simulate it yourself....

Might be worth exploring just to see if it can be cleaned up a bit.

Marcus S. Zarra
Zarra Studios LLC
Simply Elegant Software for OS X
www.zarrastudios.com

On Jun 5, 2007, at 3:51 PM, Andrew Kimpton wrote:


On Jun 5, 2007, at 3:56 PM, Andrew Kimpton wrote:


On Jun 5, 2007, at 3:15 PM, Marcus S. Zarra wrote:

This is very odd. I did get it to work by changing your dataSaved: method to:

[listController prepareContent]; //MSZ Added

As to why this is necessary, I am stumped. It should be picking it up automatically. This solves it but I am not sure if you want to do something like this. Although having your delegate broadcast a "data updated" notification might solve the issue.

When I do background processing, I close all of the windows that display the data and bring up a progress dialog which is modal. So I am probably not seeing this behavior because the controller reload when the windows get presented. Now I will have to go back into my code and see if I can duplicate this behavior and join you in a radar filing...

Cool.... now I get valid objects - and the exact same symptoms described above. At least I think it's the same I'm not able to so easily verify that sending prepareContent fixes the problem - I have a number of controllers and I don't generally have them registered with any window controller that's also receiving the completed save notification. I'll try that next...


I found that updating just one of my controllers seems to be enough to cause 'everything' to come to life. Sending a prepareContent message seems to trigger a notification that my regular observeValueForKeyPath receivers pick up.


So.....

Use objectForID to fault the newly inserted items in the main thread
Use prepareContent on a controller to trigger updates for everyone (?)

Problem (mostly - if not cleanly) solved - it still feels like the prepareContent shouldn't be needed.

Andrew 8-)




Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: [CoreData] Background Insertion
      • From: AurĂ©lien HugelĂ© <email@hidden>
    • Re: [CoreData] Background Insertion
      • From: Dave Hayden <email@hidden>
    • Re: [CoreData] Background Insertion
      • From: Andrew Kimpton <email@hidden>
References: 
 >[CoreData] Background Insertion (From: Andrew Kimpton <email@hidden>)
 >Re: [CoreData] Background Insertion (From: Dave Fernandes <email@hidden>)
 >Re: [CoreData] Background Insertion (From: Andrew Kimpton <email@hidden>)
 >Re: [CoreData] Background Insertion (From: "Marcus S. Zarra" <email@hidden>)
 >Re: [CoreData] Background Insertion (From: Andrew Kimpton <email@hidden>)
 >Re: [CoreData] Background Insertion (From: "Marcus S. Zarra" <email@hidden>)
 >Re: [CoreData] Background Insertion (From: Dave Hayden <email@hidden>)
 >Re: [CoreData] Background Insertion (From: "Marcus S. Zarra" <email@hidden>)
 >Re: [CoreData] Background Insertion (From: Andrew Kimpton <email@hidden>)
 >Re: [CoreData] Background Insertion (From: Andrew Kimpton <email@hidden>)

  • Prev by Date: Re: [CoreData] Background Insertion
  • Next by Date: NSDocument and a 'persistent profiles palette'
  • Previous by thread: Re: [CoreData] Background Insertion
  • Next by thread: Re: [CoreData] Background Insertion
  • Index(es):
    • Date
    • Thread