comparison - Objective-C, why do these NSArrays not match? -


I have two NSArrays I am comparing ??? They look similar in NSLog output, yet they do not equal each other. If I convert NSArray to an NSString, then I get the same exact result. I would have liked to compare myself. How can I determine why one and two are not equal? Thank You.

  - (minus) confused (Ansaarara *) Two {Ansaaraar * a = [Ansaararaaraar Vithobjekt: @ "16777223", @ "7", null]; NSERE * 2 = [[NSBindal bundlewith path: @ "/ path / to / bundle"] executable architecture]; // Ansaarara "7 if ([two first object Comnvetarere: (Ansaarara *) A]) {Anselog (@" - it @ par% @% in two "is shown as 16277223, Anselog" one two); // If the array matches one, then this output will be} and {nslog (@ "- this is not equal to% @% @", one, two); } Return; }   

Here is the output from the console:

  myApp (16777223, 7) myApp (16777223, 7) myApp - it does not equal (16777223, 7   

- [NSBindler executable architecture] NSNumber returns an array of objects, not NSString objects, so that you are going there is no string if you change

  NSArray * one = [NSArray arrayWithObjects: @ "16777223", @ "7", zero]; NSArray * one = [NSArray arrayWithObjects: [Integrated integer with NSNumber number: NSBundleExecutableArchitectureX86_64], [NSNumber numberDisplay: NSBundleExecutableArchitectureI386], zero];     

Your code should work.

Comments