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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:12:10+00:00 2026-05-23T16:12:10+00:00

i am creating various nsmanagedobjects from nsdictionaries and while i am iterating over the

  • 0

i am creating various nsmanagedobjects from nsdictionaries and while i am iterating over the object’s properties i assign the corresponding values from the dictionary.

currently i check the type like this:

if ([attributeValue isKindOfClass:[NSString class]]) {
   ...
}

now the problem is that once the managed object is created, all (e.g. string) values do not respond to comparing classes. apparently they are not nsnull either. i miss everything but the nsnumbers.

[[attributeValue class] description]

this is empty for everything but the nsnumbers on the unset values.

is there a way to access the type of the property itself like it is defined in the class header, instead of using the (still unset) value?

  • 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-23T16:12:11+00:00Added an answer on May 23, 2026 at 4:12 pm

    Every NSManagedObject in a model has a corresponding NSEntityDescription. You can use the entity description to get the list of attributes and relationships. These will be NSAttributeDescriptions or NSRelationshipDescriptions which have in them the information you require.

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

Sidebar

Related Questions

I'm creating an application that basically downloads and uploads files from various types of
We're working on creating a Windows service to import/export data from various places. Our
I'm creating a system, that creates an object that needs confirmation through various levels
I'm thinking of creating a generic message queue to handle various inter-process messages. (WCF
When creating a web application, and lets say you have a User object denoting
While creating a file synchronization program in C# I tried to make a method
While creating classes in Java I often find myself creating instance-level collections that I
I'm creating various processes (3 to be precise) and making them do different things.
I have a web server that is dynamically creating various reports in several formats
I have created a custom content type and using views2 for creating various page-views.

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.