Sorry, typo, I meant FILTER an array.

So is there any way to filter with numberic keys? I guess I could convert all they keys to strings? Urgh....

Is there any way to filter using all keys in a dictionary?

Thanks for you help (so far!)
Ben

On Mar 23, 2009, at 5:13 PM, Kyle Sluder wrote:

On Mon, Mar 23, 2009 at 5:03 PM, Ben Einstein <beinst...@me.com> wrote:
I was wondering if anyone knows how to use NSPredicate on values with keys that are NSNumbers (or any non-NSString, for that matter). I've poured over the documentation and tried many things, from converting to a string to %K,
%d, etc argument substitutions and nothing seems to work.

Alphanumerics only, I'm afraid.  Keypaths can't contain invalid keys,
and numbers are not valid keys.

If there's no way to do this, I've also tried ALLKEYS, but I can't get that to work either. Is this possible? If it matters, I'm just creating the
predicate with predicateWithFormat: and sorting an array.

Why aren't you using a sort descriptor?

--Kyle Sluder

_______________________________________________

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