I want to get the difference between 2 characterSets. For example:

I have the following 2 characterSets...
NSCharacterSet *aSet = [NSCharacterSet characterSetWithCharactersInString:@"a"];
NSCharacterSet *lowerSet = [NSCharacterSet lowercaseLetterCharacterSet];

The difference between these (aSet - lowerSet = remainder):
NSMutableCharacterSet *remainder = [[NSMutableCharacterSet alloc] init];
[remainder formIntersectionWithCharacterSet:aSet];
[remainder formIntersectionWithCharacterSet:[lowerSet invertedSet]];

This works, but when you turn these 2 around, I have a set that doesn't match a 
thing.
How do I get the same result when I switch aSet and lowerSet in the remainder 
interesection methods?

Thanks,

Filip


_______________________________________________

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