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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:05:37+00:00 2026-06-08T10:05:37+00:00

Wondering if its possible to concatenate keyPaths to one attribute in mapping objects. Looking

  • 0

Wondering if its possible to concatenate keyPaths to one attribute in mapping objects. Looking for something like

mapKeyPaths @”firstname”, @”lastname”, nil toAttribute:@”name”

Where name would then be “Bob Johnson”

** The API I am dealing with passes over a date and a startTime attribute, as 2012/02/28 and 16:12 respectively, as Strings.

It would be easier to just use startTime as “2012/02/28 16:12”.

I figured I can get around this issue by leaving the date and startTime as NSDate fields, so I have tried setting up a dateFormatter per Restkits instructions. When I tried that idea, just using “HH:MM”, for the startTime dateFormatter, it shoves “1970/01/01 16:12” into the startTime field.

Anyone have any suggestions, besides going through each record manually after mapping to Core Data and putting the fields in programatically?

  • 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-08T10:05:38+00:00Added an answer on June 8, 2026 at 10:05 am

    I don’t think you can do these kind of programmatic mappings yet.

    Two alternative solutions come to mind:

    1) In willMapData (or something like that) you can manually modify the incoming serialization before object mapping occurs. There you can specify a format you like.

    2) Save both these properties in your Core Data entity and create a third transient attribute which is calculated at runtime, and when required, by passing these two values through a NSDateFormatter.

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

Sidebar

Related Questions

I was wondering if its possible to directly cast objects within a foreach loop.
I was wondering if its possible to reference one android project from another android
I'm wondering if its possible to make a list like this: Or should I
I was wondering if its possible to geocode something using googlemaps api synchronously so
I was wondering if its possible to get Android application info like (name, version,
I was wondering if its possible to have one or more functions within a
I am wondering if its possible to have a an (||)or or (&&)and operator
I was wondering if its possible to use the Google maps IFRAME code to
I am wondering if its possible to to open a port listen for a
I was wondering if its possible to add custom header with classic asp. In

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.