Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mutable to immutable object

Tags:

cocoa

Is there a way to convert mutable object converted to immutable one in cocoa? I have used NSMutableDictionary *mut=[[NSMutableDictionary alloc] initWithDictionary: copyItems:]; But this dictionary is used in many other places without the mutable thing.

Best Regards, Subrat

like image 650
Subrat Avatar asked Sep 01 '26 11:09

Subrat


1 Answers

NSDictionary dictionaryWithDictionary:

like image 58
Amy Worrall Avatar answered Sep 05 '26 18:09

Amy Worrall