Hi, Now that Alex has the answer to his problem, can I ask a follow-up question based on this line in his initial email?
> On 9 May 2021, at 1:12 am, Alex Zavatone via Cocoa-dev > <cocoa-dev@lists.apple.com> wrote: > _configurationDictionary = [[NSMutableDictionary > alloc]initWithDictionary:[NSDictionary > dictionaryWithContentsOfFile:filePath]]; What's the benefit of having the immutable NSDictionary in the mix there? _configurationDictionary = [[NSMutableDictionary alloc] initWithDictionary:[NSDictionary dictionaryWithContentsOfFile:filePath]] Is that somehow better than: _configurationDictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:filePath] or even: _configurationDictionary = [NSMutableDictionary dictionaryWithContentsOfFile:filePath] Is any one more efficient than the other (I would've assumed the last one, with there being fewer objects and messages) but I suppose it's possible the compiler ends up optimising them all to be the same anyway? Mark _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com