----- Original Message ----
> From: Devon Ferns <[EMAIL PROTECTED]>
> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Cc: [email protected]
> Sent: Monday, December 8, 2008 9:44:44 AM
> Subject: Re: NSDictionary mutability test
>
> Instead of using exceptions, wouldn't -(BOOL)respondsToSelector:(SEL)aSelector
> work if you test for an NSMutableDictionary mutable method?
> Or does that not work with class clusters either(can't try it since I'm not
> at
> home)
NSDictionary instances are indistinguishable from NSMutableDictionary instances
except that the former throws an exception when you try to make it mutate. They
are both instances of the exact same class and respond to the exact same
methods.
Cheers,
Chuck
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]