gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSMutableDictionary class cluster and isKindOfClass


From: Wolfgang Lux
Subject: Re: GSMutableDictionary class cluster and isKindOfClass
Date: Thu, 28 May 2020 10:49:19 +0200

Hi Riccardo

> I have a strange issue. I get an object and check if it s a Dictionary, else 
> I spit out an exception.
> 
> if ([obj isKindOfClass: [NSDictionary class]])
> {
>   do someting;
> }
> else if ([obj isKindOfClass: [DBSObject class]])
> {
>  do something els;
> }
> else
>   Error!!!
> 
> However.... I get the error:
> Unknown class of value: GSMutableDictionary
> 
> 
> soo for some reason GSMutableDictionary is not isKindOfClass NSDictionary? 
> and not a NSMutableDictionary either?
> 
> I bet this used to work...

It certainly still does work for me. Are you sure that the object you are 
seeing is an instance object and not (for whatever reason) a class object?

Wolfgang


reply via email to

[Prev in Thread] Current Thread [Next in Thread]