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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:30:36+00:00 2026-05-28T19:30:36+00:00

Now I have a 1-dimonsion NSArray, each element of which is a NSMangedObject with

  • 0

Now I have a 1-dimonsion NSArray, each element of which is a NSMangedObject with a NSDate Attribute,

for example

an event Entity has an date(NSDate) attribute and name(NSString) attribute.

So the initilized array should be like this:

(NSArray) Events: event1, event2, event3,…,nil

Now, I need to group these objects by their date so that I can make this array the data source of a sectioned tableView.

And I just need the elememts in a same section have the same date, here the date means year,month,day, and with no hour or minute.

So the grouped NSArray should be a 2-dimension array, such as:

(NSArray) Events: day1, day2, day3, day4,…,nil;

and here day1,day2… are also a NSArray, and inside of them are really event objects. like this:

(NSArray) day1: event1, event2, event3, …, nil;

So how can I realize this ?

I guess I can not use NSFetchedResultsController, since actually I have to fetch several entities, each of which has a NSDate attribute, and put them together to be grouped by date.

and I believe there’s no problems about fetching,

I jus wonder how can I transfer the fetched 1-dimension array into the date-based 2-dimension array that I need?

Hoping someone to help and thanks very very much for answering!

  • 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-28T19:30:37+00:00Added an answer on May 28, 2026 at 7:30 pm

    You can use a custom NSValueTransformer to convert your entities’ dates to ranges (or days). From there, you can use bindings with that if you like.

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

Sidebar

Related Questions

Lets say I have an array which has n dimensions. Now in order to
I have a JFrame which has 3 JPanels in GridBagLayout .. Now, when I
I now have a running Java program which only lacks of the final step,that
Right now, I have a full screen application which spawns several full screen JFrames
I have a Date Dimension called Dim_Date in my Data Warehouse. Now the issue
I now have it set up so that when people go to a thank
Modern ATL/MFC applications now have access to a new shared pointer class called CAutoPtr,
in /usr/local i now have two mysql folders: mysql-5.1.34-osx10.5-x86 mysql-5.1.37-osx10.5-x86_64 is it possible to
The javascript code I now have can toggle a single row of data. Whether
Following on from this question I now have code that can attach to a

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.