Re: isEqualToString
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.