• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPredicate mal behaviour?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSPredicate mal behaviour? (From: David Blanton <email@hidden>)

  • Prev by Date: Re: [NSOpenPanel] Is there a way to access the contextual information?
  • Next by Date: Customizing left expression title in NSPredicateEditorRowTemplate
  • Previous by thread: NSPredicate mal behaviour?
  • Next by thread: Customizing left expression title in NSPredicateEditorRowTemplate
  • Index(es):
    • Date
    • Thread