Re: Know about Mutability
Re: Know about Mutability
- Subject: Re: Know about Mutability
- From: Prachi Gauriar <email@hidden>
- Date: Fri, 14 Jan 2005 13:22:43 -0500
On Jan 14, 2005, at 12:22 PM, Shawn Erickson wrote:
The problem is that the setting of this flag isn't cleanly or easily
exposed by the traditions methods like isKindOf, respondsToSelector,
etc. at this time. Apple could address this in various ways with
various levels of potential backwards compatibility issues (depending
on quirks / assumptions in existing code). It may be best to provide a
universal isMutable method on NSObject (or course that has backwards
compatibility issues with any one that has added such a method via a
category ect.) that can be used to understand in one shot if an object
is or isn't mutable.
It seems to me that they should just override isKindOf:,
respondsToSelector:, etc. in NSCFDictionary to take the flag into
consideration. At some point, backwards compatibility is going to have
to be given up so that these methods behave as documented. We
shouldn't have to know about the internal implementation of
NSDictionary... they should just modify the internals so that the
standard inspection methods behave normally.
Just my 2 cents.
-Prachi
_______________________________________________
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