NSPredicate mal behaviour?
NSPredicate mal behaviour?
- Subject: NSPredicate mal behaviour?
- From: David Blanton <email@hidden>
- Date: Mon, 28 Dec 2009 14:09:07 -0700
In a directory I have:
.DS_Store
._Filename
These name are in a array that is filtered using this predicate:
notBeginsWithDot = [NSPredicate predicateWithFormat:@"NOT SELF
BEGINSWITH %@", @"."];
childrenArray = [childrenArray
filteredArrayUsingPredicate:notBeginsWithDot];
childrenArray now contains ._Filename but not .DS_Store.
This seems incorrect since both start with '."
Comments please.
db
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden