I'm trying to compile the Amazon-XML example from MacTech. Here's the article, here's the source.
The program compiles but the run log provides cryptic messages which seem to show there's a problem in the nib file.
What puzzles me is that the compiler offers a "warning"
It's on this line of code:
NSXMLElement *detailsNode = [rootNode childNamed"Details"];
And the warning says, "NSXMLElement may not accept childNamed message"
First, it seems so ... indecisive ... to say NSXMLElement "may" not accept a message. Shouldn't the compiler know? It seems to add a whole new level of error handling if you need to worry about what may or may not be acceptable.
Second, sometimes the compiler gives that message and sometimes the compiler says "warning: initialization from distinct Objective-C type" Getting separate error messages for the same line seems awfully weird. If I were more of a sexist I'd think XCode were a woman. (Of course, now that I'm trying to document it, XCode offers only the initialization error.)
I never worked with a compiler that gave "warnings" just errors. Is this kind of behavior common?
mt
Running 10.4.11, mac mini, XCode 2.3
The program compiles but the run log provides cryptic messages which seem to show there's a problem in the nib file.
What puzzles me is that the compiler offers a "warning"
It's on this line of code:
NSXMLElement *detailsNode = [rootNode childNamed"Details"];
And the warning says, "NSXMLElement may not accept childNamed message"
First, it seems so ... indecisive ... to say NSXMLElement "may" not accept a message. Shouldn't the compiler know? It seems to add a whole new level of error handling if you need to worry about what may or may not be acceptable.
Second, sometimes the compiler gives that message and sometimes the compiler says "warning: initialization from distinct Objective-C type" Getting separate error messages for the same line seems awfully weird. If I were more of a sexist I'd think XCode were a woman. (Of course, now that I'm trying to document it, XCode offers only the initialization error.)
I never worked with a compiler that gave "warnings" just errors. Is this kind of behavior common?
mt
Running 10.4.11, mac mini, XCode 2.3