Created
July 8, 2010 14:57
-
-
Save Gernot/468113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDictionary *testDict = [NSDictionary dictionary]; | |
NSMutableDictionary *mutableTestDict = [NSMutableDictionary dictionary]; | |
if ([testDict isKindOfClass:[NSDictionary class]] | |
&& ![testDict isKindOfClass:[NSMutableDictionary class]] //notice the negation here! | |
&& [mutableTestDict isKindOfClass:[NSDictionary class]] | |
&& [mutableTestDict isKindOfClass:[NSMutableDictionary class]]) | |
{ | |
NSLog(@"Hey Christian, klappt doch!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment