Re: Know about Mutability
Re: Know about Mutability
- Subject: Re: Know about Mutability
- From: James Bucanek <email@hidden>
- Date: Thu, 13 Jan 2005 21:27:19 -0700
Gerriet M. Denkmann wrote on Friday, January 14, 2005:
>But how do I know whether myDict is mutable or not?
>Actually myDict seems to be a NSCFDictionary (NSObject -> NSDictionary
>-> NSCFDictionary -> NSMutableDictionary -> %NSCFDictionary ->
>NSCFDictionary)
What's wrong with
if ([myDict isKindOfClass:[NSMutableDictionary class]])
...
?
If it's an NSMutableDictionary, and it implements the methods in the NSMutableDictionary implementaion, then it has to be a subclass of NSMutableDictionary -- right?
--
James Bucanek <mailto:email@hidden>
_______________________________________________
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