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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:39:25+00:00 2026-05-21T14:39:25+00:00

I have a managed object that has several NSStrings: @interface Establishment : NSManagedObject {

  • 0

I have a managed object that has several NSStrings:

@interface Establishment :  NSManagedObject  
{
}
@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSString * subtitle;
@property (nonatomic, retain) NSString * description;

I am creating an instance of the managed object and assigning the strings to labels, as such:

if ([establishmentData.name length]!= 0) {
        estabName.text = establishmentData.name;
    } else {
        estabName.hidden = YES;
    }
    if ([establishmentData.subtitle length]!= 0) {
        estabTitle.text = establishmentData.subtitle;
    } else {
        estabTitle.hidden = YES;
    }
    
    if ([establishmentData.description length]!= 0) {
        estabDescription.text = establishmentData.description;
    } else {
        estabDescription.hidden = YES;
    }

In this case, name has a value, but subtitle and description are nil. When it gets to subtitle, it successfully fails the if and hides the text field, but when it gets to description it crashes EXC_BAD_ACCESS. I tried simply NSLogging establishmentData.description and it still crashes

Backtrace throws out 62,000 lines of this:

62851 0x00d3dbbf in _PF_Handler_Public_GetProperty ()

62852 0x00d3f2fb in -[NSManagedObject _descriptionValues] ()

62853 0x00d3d6b5 in -[NSManagedObject description] ()

and ends with

62854 0x00004b90 in -[DataTable tableView:didSelectRowAtIndexPath:]

(self=0x4d48df0, _cmd=0x6d59e3,
tableView=0x505d200,
indexPath=0x6111b00) at
/Users/Com_23/Documents/projects/Est_list/Classes/DataTable.m:330

62855 0x0032e794 in -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:]

()

62856 0x00324d50 in -[UITableView _userSelectRowAtPendingSelectionIndexPath:]

()

62857 0x000377f6 in __NSFireDelayedPerform ()

62858 0x00f67fe3 in CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION

()

62859 0x00f69594 in __CFRunLoopDoTimer ()

62860 0x00ec5cc9 in __CFRunLoopRun ()

62861 0x00ec5240 in CFRunLoopRunSpecific ()

62862 0x00ec5161 in CFRunLoopRunInMode ()

62863 0x018bb268 in GSEventRunModal ()

62864 0x018bb32d in GSEventRun ()

62865 0x002c742e in UIApplicationMain ()

62866 0x00002958 in main (argc=1, argv=0xbfffefe4) at

/Users/Com_23/Documents/projects/Est_list/main.m:14

DataTable being my UITableViewController. Does anyone have any idea what is going on? Everything looks fine to me.

  • 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-21T14:39:26+00:00Added an answer on May 21, 2026 at 2:39 pm

    You cannot give a property the name “description”. See:

    Accessing a property in NSManagedObject causes memory spike and crash

    Reference (Apple Documentation):

    http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Reference/CoreDataFramework/Classes/NSPropertyDescription_Class/NSPropertyDescription.html

    A property describes a single value
    within an object managed by the Core
    Data Framework. There are different
    types of property, each represented by
    a subclass which encapsulates the
    specific property behavior—see
    NSAttributeDescription,
    NSRelationshipDescription, and
    NSFetchedPropertyDescription.

    Note that a property name cannot be
    the same as any no-parameter method
    name of NSObject or NSManagedObject.
    For example, you cannot give a
    property the name “description”
    . There
    are hundreds of methods on NSObject
    which may conflict with property
    names—and this list can grow without
    warning from frameworks or other
    libraries. You should avoid very
    general words (like “font”, and
    “color”) and words or phrases which
    overlap with Cocoa paradigms (such as
    “isEditing” and “objectSpecifier”)

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

Sidebar

Related Questions

I have a C sharp console application that captures a screenshot of a MS
I've got an app design question that I'm hoping someone can help with. Let's
Background: - Running Window Server 2008 R2. - The servers has been patched with
We* have a web application, created by Delphi + Intraweb (for the front end/web
I'm not sure how to manage this, as objective-c is wierd enough for me
Overview I’m building a simple web application consisting of a canvas and elements on
ASP.NET MVC makes it really easy to create editing templates for simple, flat objects.
This question covncerns my lack of understanding of how to use the core data
I am currently developing Java/GWT-application which is hosted on a weblogic application server. I
how do I set the value of an NSNumber variable (without creating a new

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.