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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:31:08+00:00 2026-05-22T11:31:08+00:00

I have a custom class MyClass that is essentially made up of several NSMutableArrays

  • 0

I have a custom class MyClass that is essentially made up of several NSMutableArrays and no other variables. I have an entity MyEntity that has an ivar that is of MyClass. When I try to save the entity, I get this stack dump:

0   CoreFoundation                      0x0118ebe9 __exceptionPreprocess + 185
1   libobjc.A.dylib                     0x012e35c2 objc_exception_throw + 47
2   CoreFoundation                      0x011906fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3   CoreFoundation                      0x01100366 ___forwarding___ + 966
4   CoreFoundation                      0x010fff22 _CF_forwarding_prep_0 + 50
5   Foundation                          0x00091bf6 _encodeObject + 1076
6   Foundation                          0x0009d041 +[NSKeyedArchiver archivedDataWithRootObject:] + 206
7   CoreData                            0x00eb7255 -[NSSQLiteConnection execute] + 2677
8   CoreData                            0x00f0b646 -[NSSQLiteConnection insertRow:] + 262
9   CoreData                            0x00f082d4 -[NSSQLConnection performAdapterOperations:] + 180
10  CoreData                            0x00f07f7e -[NSSQLCore _performChangesWithAdapterOps:] + 494
11  CoreData                            0x00f06a5a -[NSSQLCore performChanges] + 410
12  CoreData                            0x00f004a8 -[NSSQLCore saveChanges:] + 216
13  CoreData                            0x00ebe739 -[NSSQLCore executeRequest:withContext:error:] + 409
14  CoreData                            0x00f6eb1b -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 3691
15  CoreData                            0x00ef6db8 -[NSManagedObjectContext save:] + 712
16  MyProgram                              0x00006d19 -[DataParser parser:didEndElement:namespaceURI:qualifiedName:] + 1665
17  Foundation                          0x00104a19 _endElementNs + 453
18  libxml2.2.dylib                     0x01620e63 xmlParseXMLDecl + 1346
19  libxml2.2.dylib                     0x0162bb6d xmlParseChunk + 3984
20  Foundation                          0x0010421a -[NSXMLParser parse] + 321
21  MyProgram                              0x0000653e -[DataParser parseXMLFileAtURL:parseError:] + 176
22  MyProgram                              0x00002912 -[MyProgramAppDelegate application:didFinishLaunchingWithOptions:] + 664
23  UIKit                               0x002cc1fa -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1163
24  UIKit                               0x002ce55e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 439
25  UIKit                               0x002d8db2 -[UIApplication handleEvent:withNewEvent:] + 1533
26  UIKit                               0x002d1202 -[UIApplication sendEvent:] + 71
27  UIKit                               0x002d6732 _UIApplicationHandleEvent + 7576
28  GraphicsServices                    0x01ac4a36 PurpleEventCallback + 1550
29  CoreFoundation                      0x01170064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
30  CoreFoundation                      0x010d06f7 __CFRunLoopDoSource1 + 215
31  CoreFoundation                      0x010cd983 __CFRunLoopRun + 979
32  CoreFoundation                      0x010cd240 CFRunLoopRunSpecific + 208
33  CoreFoundation                      0x010cd161 CFRunLoopRunInMode + 97
34  UIKit                               0x002cdfa8 -[UIApplication _run] + 636
35  UIKit                               0x002da42e UIApplicationMain + 1160
36  MyProgram                              0x000023e6 main + 84
37  MyProgram                              0x00002389 start + 53

Does anyone have any suggestions at all what may be causing this? I believe it’s probably related to MyClass, but how should I go about fixing this? Did I forget to write something for it?

  • 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-22T11:31:09+00:00Added an answer on May 22, 2026 at 11:31 am

    How did you define the myClass ivar in your entity? You can use a Transformable attribute to hold a non standard type. The idea is that Core Data uses behind the scenes an instance of NSValueTransformer to convert the attribute to and from an instance of NSData.

    Core Data then stores the data instance to the persistent store.

    By default is used the NSKeyedUnarchiverFromDataTransformerName, this means your custom class must implement the NSCoding protocol (with support for keyed-archiving)

    Check “Non-Standard Persistent Attributes” in the Core Data Programming Guide for more details and description of another way to accomplish the same.

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

Sidebar

Related Questions

I have a custom class that has as an instance variable of a coordinate:
Lets say I have an ActionScript class: MyClass and that class has data in
I have a custom class that looks like: function myClass(){ var thing; var thingtype;
I have created a custom attribute that I am using on my class MyClass
I have a custom class that uses boost mutexes and locks like this (only
I have a custom class say 'MyCanvas' derived from wpf Canvas class. MyCanvas has
I have a custom class that I use to build table strings. I would
I have a web service that accepts and returns a custom class. The problem
I have a custom dll, which has a class in it, and (for simplicity's
I have a custom class I created, say MyClass. Now how to add 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.