| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
NSLog(@"%@", [ myTree childAtIndex: 0 ]); // This produces an output of the correct value "Archive Path"
NSString* currentKey = (NSString*) [ myTree childAtIndex:0]);
NSLog(@"%@", currentKey); // This also produces an "Archive Path"
if ([ currentKey isEqualToString:@"Archive Path"]) // THIS, however, produces a runtime error "[ XMLTree -isEqualToString:] selector not found"
Long story short: -childAtIndex: returns another XMLTree, but obviously it also holds the correct value (see the NSLogs above). Since there is no method in the class for explicitly returning the element value, is there ANY way I can get my comparison working?
| References: | |
| >Making a String from a non-NSString (From: Michael Becker <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.