What is __NSFrozenArrayM in Core Data Objective - C

Yogesh Patel

i'm trying to fetching coredata entity but it gives this __NSFrozenArrayM and i don't get my array of entity. if any one have idea about then please tell me. Thanks In advance

This is console :-

    <__NSFrozenArrayM 0x6000014468e0>(
    <ExpenseInfo: 0x60000270dea0> (entity: ExpenseInfo; id: 0x92d7006a96eb7229 <x-coredata://B5FE3C43-17E6-4BEA-B3F4-E8093CA29D37/ExpenseInfo/p185> ; data: <fault>),
)

This is my code :-

    NSFetchRequest *request = [[NSFetchRequest alloc] init];
    NSEntityDescription *entity = [NSEntityDescription entityForName:entityName inManagedObjectContext:managedObjectContext];
    [request setEntity:entity];

   NSError *error;

    NSMutableArray *mutableFetchResults = [[managedObjectContext executeFetchRequest:request error:&error] mutableCopy] ;

    return mutableFetchResults;
Mayur Karmur

__NSFrozenArrayM an immutable NSArray sharing its storage with an NSMutableArray that it was -copy'd from (will do a real copy if the original array is mutated).

Reference: https://gist.github.com/Catfish-Man/bc4a9987d4d7219043afdf8ee536beb2

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Objective C, Core Data, NSManagedObject

objective c - set relationship (core data)

objective-c app update and core data

Tableview, core data and JSON in Objective C

How to filter data from Core Data in iOS Using Objective C

IOS/Core-data/Objective-C: NSPredicate with Boolean values

IOS/Objective-C/Core Data: NSPredicates with Complicated Conditional logic

ios - making app delete and update core data in the background (objective c)

How to add Array as string in Core Data in Objective c

Fetch Result Crashes (using persistentContainer) - Core Data Objective C

Physical location (directory) in persistent store for Core data(Objective C)

IOS/Objective C: App crashes with core data - pressing the save button

What is Objective C++?

what is xyz* in objective c

What is nonnull in objective C?

What is "fabs" in Objective C?

What is a receiver in Objective C?

Objective C - one-many relationships data retrival from core data

What are objective c runtime features?

What is the file format of Objective C?

IOS/Objective-C: Detect if nsmanaged object linked to another nsmanagedobject in core data

How to iterate an NSSet (Objective-C) - To-Many relationship representation in Core Data - efficiently?

Xcode 8 How to use Core Data Code Gen Classes in Objective-C?

Core Data - The correct way to subclass NSManagedObject in objective-c project Xcode 8

ios/xcode/objective-c: Any way to link to other view controller in core-data driven page?

ios/objective-c/core-data: How to show relationship as property in NSManagedObjects

IOS/Objective-C: Load one record from Core Data without loading table first

NSUserDefaults Not Saving Data Objective C

Data types and declarations in Objective C