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 6326659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:07:58+00:00 2026-05-24T17:07:58+00:00

I am getting a crash when changing a BOOL attribute of my NSManagedObject. The

  • 0

I am getting a crash when changing a BOOL attribute of my NSManagedObject.

The code to save the object is:

self.detailItem.bookmark = [NSNumber numberWithBool:YES];
NSError *error = nil;
if (!    [self.detailItem.managedObjectContext save:&error]) 
{
    // Handle the error.
}
NSLog(@"%@", error);

And the error:

Serious application error.  Exception was caught during Core Data change processing.  This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification.  The left hand side for an ALL or ANY operator must be either an NSArray or an NSSet. with userInfo (null)
2011-08-18 15:41:32.866 Codes[5260:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'The left hand side for an ALL or ANY operator must be either an NSArray or an NSSet.'
  • 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-24T17:07:59+00:00Added an answer on May 24, 2026 at 5:07 pm

    WARNING: This answer is based on a guess I’ve made based on the error message; it might be 100% wrong!


    The error looks like it’s an incorrectly formed NSPredicate. You might have something like

    NSString *name = @"Bob";
    [NSPredicate predictaeWithFormat:@"ANY %K IN %@", @"name", name];
    

    That looks like it might find anything where name = 'Bob' but it won’t, it will throw an exception 🙁

    If you’re using ‘IN’ you need to pass an NSSet or NSArray i.e .

    NSArray *names = [NSArray arrayWithObjects:@"Alice", @"Bob", nil];
    [NSPredicate predictaeWithFormat:@"ANY %K IN %@", @"name", names];
    

    This will find anything with the name ‘Bob’ or ‘Alice’.

    If you just wanted to search for ‘Bob’, just do this :

    NSString *name = @"Bob";
    [NSPredicate predictaeWithFormat:@"%K == %@", @"name", name];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Getting a rendering error for this form: 'NoneType' object has no attribute 'widget' http://dpaste.com/88585/
I am getting a crash inside win32 fn:: SHBrowseForFolder(). The code is as follows:
i am getting thing crash log: 2011-07-21 23:18:51.233 iFeel[87679:910b] *** __NSAutoreleaseNoPool(): Object 0x5fbdef0 of
I getting bug: crash happened outside the Java Virtual Machine in native code .
XCode 3.1.2 using built-in OCTest unit testing. I'm getting a crash when unit tests
Getting the above error in following code. How to rectify it. Thanks. Please look
I am getting weird problem, the crash happens at random times, for example i
I'm getting a crash when loading dsound.dll from another DLL in Windows 7. The
I am getting a crash with following values :- Poll is the system call
In my application i am getting random crash at any location, i have used

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.