fork download
  1. #include <Foundation/Foundation.h>
  2.  
  3. int main()
  4. {
  5. NSAutoreleasePool *p = [NSAutoreleasePool new];
  6.  
  7. NSDictionary *dict = [NSDictionary dictionaryWithObject:@"T" forKey:@"hasSetID"];
  8.  
  9. if ([[dict valueForKey:@"hasSetID"] isEqualToString:@"T"]) {
  10. NSLog(@"Value was T");
  11. } else {
  12. NSLog(@"Value was NOT T");
  13. }
  14.  
  15. [p drain];
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.02s 10832KB
stdin
Standard input is empty
stdout
Standard output is empty