Re: The joys of people using valueForKey to get objects out of a dictionary.
Re: The joys of people using valueForKey to get objects out of a dictionary.
- Subject: Re: The joys of people using valueForKey to get objects out of a dictionary.
- From: Greg Weston <email@hidden>
- Date: Tue, 10 Nov 2015 18:50:22 -0500
- X_v_e_cd: 26ed7680d88045d195c263356ab01769
- X_v_r_cd: 8efab2cbf532d68a518422787fa54e8a
> On Nov 10, 2015, at 15:21, Alex Zavatone <email@hidden> wrote:
>
>
>> Yeah. Honestly, I'm looking for cases that would justify why all the dictionary object access blocks in this code that use valueForKey are wrapped with @try/@catch clauses. I've never seen cases with objectForKey that would trying to catch exceptions accessing dictionary objects.
It's really difficult to say what that coder's motivation was at that time. For all we know, it was a habit carried over from .NET by someone new to Cocoa.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden