• 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: Core data - getting fresh records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data - getting fresh records


  • Subject: Re: Core data - getting fresh records
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 26 Sep 2007 17:34:45 -0700


On 2007 Sep, 26, at 2:27, Steve Steinitz wrote:

My question is, is there any way, short of writing SQL or doing
[managedObjectContext reset], that I can force a Sales fetch to go
directly to the SQLite database and not use the Sales in memory?

I'm new with Core Data, but intrigued that there is not a simple method to do this. From reading the documentation, though, the following Wild And Crazy Kludge might work:


(a) setStalenessInterval: to something really small like 10 microseconds
(b) refreshObject:mergeChanges
(c) setStalenessInterval: back to 0 (infinite) or whatever it was


I'm worried that if any other objects get involved in step (b) before (c) is invoked, it might set off a never-ending chain reaction of fetches, but it might be fun to try!
_______________________________________________


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


References: 
 >Core data - getting fresh records (From: Steve Steinitz <email@hidden>)

  • Prev by Date: RE: Convenience Methods
  • Next by Date: Re: Convenience Methods
  • Previous by thread: Core data - getting fresh records
  • Next by thread: Re: Core data - getting fresh records
  • Index(es):
    • Date
    • Thread