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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:55:28+00:00 2026-05-29T06:55:28+00:00

I am using Core Data for my app and I have a model Reservation

  • 0

I am using Core Data for my app and I have a model Reservation and there I have a facebook_event_id which at first I had as a Integer 64 but the problem is that this is perhaps to short and I would like it to change to NSString (I get it as JSON string from Facebook anyway).

I have done the following for now:

  • Editor -> Add model version and based it on my older one
  • rebuild my subclasses
  • added this dict with NSMigratePersistentStoresAutomaticallyOption and NSInferMappingModelAutomaticallyOption set to YES

When I tested it to change between Integer 16 and 64 everything worked fine but when I try to change from Integer 64 and String it gives me an error:

Can't find or automatically infer mapping model for migration

So I added a new mapping model and there I wanted to fix it in ReservationRoReservation | facebook_event_id | $source.facebook_event_id

I think one should do something with $source.facebook_event_id to get it converted but I have no idea what to write in the to get it to work. One should not use plain Objective-C there but a NSExpression, but nowhere there it explains how to convert a NSNumber to a NSString.

  • 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-29T06:55:29+00:00Added an answer on May 29, 2026 at 6:55 am

    I think you want:

    FUNCTION($source.facebook_event_id, "stringValue")
    

    Which will take the NSNumber currently in your facebook_event_id property, and send the stringValue message to it.

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

Sidebar

Related Questions

Im using a Core Data model for my iPhone app. I have been looking
I have my app using core data with the data model below. However, I'm
I'm using core data in my app. I have two entities that are related:
I have developed my app using core data. It works fine in the simulator.
I've been creating an iPhone App using Core Data. First of all, does it
I'm able to complete my iphone app using core data internally. But for the
I'm using Core data in an iOS project. I have the data model setup
I have a Core Data model in which a Task entity includes an optional
I'm working on a gym logging app using Core Data model. I'm trying to
I have an existing application using Core Data on the iPhone. Occasionally there would

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.