Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6576611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:32:02+00:00 2026-05-25T15:32:02+00:00

Some says we cannot change the request object. Some says we can change the

  • 0

Some says we cannot change the request object. Some says we can change the query. Some says we cannot change the predicate.

How do you change the query if you do not change the predicate?

That’s kind of strange right.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:32:03+00:00Added an answer on May 25, 2026 at 3:32 pm

    It’s not an SQL query, it’s fetch. A query is a SQL specific concept while a fetch is a Core Data concept that works with any type of Core Data store.

    You can change the fetchRequest value of a NSFetchedResultsController but its somewhat involved. From the docs:

    Modifying the Fetch Request

    You cannot simply change the fetch request
    to modify the results. If you want to change the fetch request, you
    must:

    (1) If you are using a cache, delete it (using deleteCacheWithName:).

    Typically you should not use a cache if you are changing the fetch
    request.

    (2) Change the fetch request.

    (3) Invoke performFetch:.

    It is the cache that causes the problems with modifying the fetch request.

    You can also change the predicate of a NSFetchRequest object but if you use that fetch with a fetched results controller, you have to perform the above steps.

    The problems comes when the cached objects are not the same set returned by the new fetch request. Often it is simpler and cleaner to just create a new fetch request object or a new fetched results controller object.

    You do have to freeze the tableview with beginUpdate while all this is going on otherwise the tableview’s rows and sections will come out of sync with the data causing a crash.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Mysteriously, JAXB is throwing a JAXBException that says that some property retainReferenceToInfo is invalid.
As the question says, what are some common/major issues that C++ programmers face when
Pretty much what the title says really. We have some code that is .NET
I have a problem so strange that I hardly can put an adequate title
I have a FieldSet object in a form, but for some reason i can't
I've a third-party servlet inside a JAR that I cannot change. I've extended that
Question says it all. Some quick code examples of usage would be nice.. thanks!
The title pretty much says it all. Some caveats are: I need to be
The title pretty much says it all. When I'm doing some reflection through my
Most projects now need some form of a database. When someone says database, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.