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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:05:07+00:00 2026-05-16T00:05:07+00:00

I have an entity called Task in my Core Data model. The Task entity

  • 0

I have an entity called Task in my Core Data model. The Task entity has a transformable attribute called date. The class of the date attribute is a class called TDate (which conforms to NSCoding, therefore being a transformable attribute). TDate has a property of type NSInteger called month.

In my NSFetchRequest I want to get all Task objects of a specific month. I’m using the following predicate:

[NSPredicate predicateWithFormat:@"date.month == 7"]

That should get me all Task objects in the month of July. However, with this predicate, no fetched objects are returned. I can confirm that there are Task objects whos month is 7 (July) by taking out the predicate. Is there something wrong with my predicate syntax?

Thanks

  • 1 1 Answer
  • 1 View
  • 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-16T00:05:08+00:00Added an answer on May 16, 2026 at 12:05 am

    If you’re using an SQLite backend, then you cannot search against transformable properties. On the SQLite backend, the fetch request’s predicate is transformed to SQL and executed on the SQLite engine. Because SQLite has no knowledge of Cocoa, predicates that execute against the SQLite backend can’t use transformable properties.

    If you’re using an XML, binary or in-memory store, you can use predicates that query against transformable properties since the entire object graph is in-memory and is queried using native Cocoa.

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

Sidebar

Related Questions

I have an entity called Photo. A photo has a date field and I
I have an entity called Medico which was created as an Entity Class from
I have an entity called PendingPartners which has a navigation property to the Residents
I have entity called Customer and it has three properties: public class Customer {
I have an entity called Band which has a to-many relationship to a Category
i have this entity called BlogArticle which has a property called public virtual ICollection<BlogComment>
I have an entity called Requests which has a navigation called StatusHistories I need
I have an entity called Route, which has a related entity called Employee: public
I have an entity called File, I created a partial class with a property
I have an abstract entity called Block which contains two attributes: column and order

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.