• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: isEqualToString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isEqualToString


  • Subject: Re: isEqualToString
  • From: Julien Jalon <email@hidden>
  • Date: Sun, 13 Jul 2003 03:03:40 +0200

On Sunday, Jul 13, 2003, at 02:32 Europe/Paris, John MacMullin wrote:
if ( [[accessString description] isEqualToString: [[self
recordForRow:i] objectAtIndex:2] ]) {
NSLog(@" IsUserAll yes");
isUserAll = YES;
} else {
isUserAll = NO;
NSLog(@" IsUserAll no");
}
break;
}
};

The following NSLog output, from the code above, shows the strings to
be equal:

2003-07-12 17:25:00.865 GLASS[19889] Access to All_recordString
2003-07-12 17:25:00.865 GLASS[19889] Access To All_bundleString
2003-07-12 17:25:00.866 GLASS[19889] IsUserAll no


Since [accessString description] == @"Access to All" and [[self recordForRow:i] objectAtIndex:2] == @"Access To All" (Not the difference in "To"), it's not surprising.

maybe using lower case version to compare your string would be useful (or your data are incorrect).

--
Julien Jalon
http://www.julien-jalon.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >isEqualToString (From: John MacMullin <email@hidden>)

  • Prev by Date: Re: subclassing question
  • Next by Date: How to construct Unicode Safe Strings in the source?
  • Previous by thread: isEqualToString
  • Next by thread: Re: isEqualToString
  • Index(es):
    • Date
    • Thread