Re: Know about Mutability
Re: Know about Mutability
- Subject: Re: Know about Mutability
- From: Evan Schoenberg <email@hidden>
- Date: Fri, 14 Jan 2005 02:54:22 -0600
On Jan 14, 2005, at 1:05 AM, Hugh Hoover wrote:
I'm confused about why respondsToSelector: isn't working correctly...
Either the object will handle the selector (and respondsToSelector:
returns true) or it doesn't and respondsTo returns false?
Note that when you send the setObject:forKey: selector to it, it
responds with an exception that a mutating method was sent to an
immutable object. To be posting such a specialized exception, it must
be handling the selector and taking action... it's not responding in
the way you would like, but it -is- responding.
-Evan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden