discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Searching NSString


From: Daniel J Farrell
Subject: Searching NSString
Date: Tue, 1 May 2007 17:47:02 +0100

Hello,

What is the easiest way to search the contents of an NSString for the occurrence of a word?

For example, if I have @"GNUStep is really cool", how can I find out if this contains the string @"cool"? I just need a BOOL to be returned.

I tried looked into this but got a bit hung up on NSPredicate class. It seemed to be getting a little too complicated for what I want to do.

Cheers,

Dan.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]