Re: NSPredicate mal behaviour?
Re: NSPredicate mal behaviour?
- Subject: Re: NSPredicate mal behaviour?
- From: David Blanton <email@hidden>
- Date: Mon, 28 Dec 2009 15:34:54 -0700
Errata. Can't debug my own code. NSPredicate is working properly.
Happy New Year!
On Dec 28, 2009, at 2:09 PM, David Blanton wrote:
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
_______________________________________________
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