[OGo-GNUstep-Port] Re: Patches
Helge Hess
gnustep-port@opengroupware.org
Fri, 18 Jul 2003 13:21:41 +0200
Hi,
Helge Hess wrote:
> please send any patches you want to have applied to
> patches@opengroupware.org. We are going to review/edit, test a bit and
> commit if everything looks fine.
If you replace indexOfString: with rangeOfString:, AFAIK this is not
supposed to work:
---
- index = [lowServer indexOfString:pref];
+ index = [lowServer rangeOfString:pref].location;
if (index != NSNotFound) {
---
If you use -rangeOfString:, you need to check the length, to find out
whether something was actually found:
---
r = [lowServer rangeOfString:pref]
if (r.length > 0) {
---
I think I run into this on Cocoa, but I'm not sure.
regards,
Helge
--
http://www.opengroupware.org/