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

  • SEARCH
  • Home
  • 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 8746331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:10:37+00:00 2026-06-13T12:10:37+00:00

wI am using three fetch controllers in order to filter three lists of tasks;

  • 0

wI am using three fetch controllers in order to filter three lists of tasks; today’s, tomorrow’s and finally later tasks. For that case, I have three predicates:

NSPredicate *todayPredicate = [NSPredicate predicateWithFormat:@"(date <= %@) AND isDone == 0",
                                   [self getEndDateForDay:P_Section_Today]];
NSPredicate *tomorrowPredicate = [NSPredicate predicateWithFormat:@"((date >= %@) AND (date <= %@)) AND isDone == 0",
                                   [self getStartDateForDay:P_Section_Tomorrow],
                                   [self getEndDateForDay:P_Section_Tomorrow]];
NSPredicate *laterPredicate = [NSPredicate predicateWithFormat:@"date >= %@ AND isDone == 0",
                                      [self getStartDateForDay:P_Section_Later]];

I was happy with it. It worked like a charm. Until, over a night, I faced the following problem. The three controllers do not update themselves.

Example:
– Started the app on Sunday. (Now, today is Sunday.).
– The app is still running.
– Opened the app on Monday morning.
– Added a new task for Monday. It shall appear in Today’s task, right? No!, it appears in Tomorrow’s tasks. No fix for that except to close the app from the background and launch it again.

I did thought that the performFetch does update the fetch controller along with its predicate, but it doesn’t. Is there a fix for that?

  • 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-06-13T12:10:38+00:00Added an answer on June 13, 2026 at 12:10 pm

    The date in the predicates is fixed when you create them, i.e., your getStartDateForDay: and getEndDateForDay: will not get called again automatically. You need to update the predicates when you detect that the day has changed.

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

Sidebar

Related Questions

I have three classes that I am using and have shortened for ease of
I have the following animation set up using Three.js: http://frontier.lincoln.ac.uk/3d/development/Stage2/characters/man2.html Please ignore the ropey
I have three textareas using tinymce as text area. They all work in chrome
I am using fetch in the index action of the following backbone.js controller: App.Controllers.PlanMembers
I have a table that lists users that are registered at my website. The
I am using bonfire for my project. I have to fetch userid from the
Is there any way we can fetch X509 Public Cetrificates using c# from AD
I am using simple PHP query to fetch rows from the database, there are
I am using three tables and I am trying to calculate discounted price by
I'm attempting to expose a single API call using three different authentication mechanisms: django's

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.