On 16/07/2009, at 3:42 PM, Stephen J. Butler wrote:

On Thu, Jul 16, 2009 at 12:36 AM, Graham Cox<graham....@bigpond.com> wrote:
I want to add the following category method to NSString:

- (BOOL)  isEqualToAnyStringIn:(NSString*) firstString, ...
NS_REQUIRES_NIL_TERMINATION;

I've used some of Cocoa's headers for examples of how to declare this, as above, but I'm not sure how the actual implementation should go. I want to
use the method like this:

match = [str isEqualToAnyStringIn:@"CAT", @"DOG", @"BIRD", nil];

Nothing hard about it!

<http://developer.apple.com/qa/qa2005/qa1405.html>


Excellent! - thank you.

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to