• 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 and Arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPredicate and Arrays


  • Subject: Re: NSPredicate and Arrays
  • From: Keary Suska <email@hidden>
  • Date: Mon, 31 Mar 2008 14:43:12 -0600
  • Thread-topic: NSPredicate and Arrays

on 3/31/08 1:41 PM, email@hidden purportedly said:

> ArrayOfFoos:
>     Foo: (Custom Object)
>         Bars: (NSArray *)            Bar: (Custom Object)
>                 Baz = 1 (int Property on custom object)
>             Bar:
>                 Baz = 3
>         ...
>     Foo:        Bars:
>             Bar:
>                 Baz = 2
>             Bar:
>                 Baz = 1
>         ...
> ...
>
> and
> So what I want to do is pull out all Foos who have a baz == 1.

How about @"ALL Bars.baz = 1" ? Have you read the Predicate Programming
Guide
<http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/predic
ates.html> ?

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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 and Arrays (From: "Jake Carter" <email@hidden>)

  • Prev by Date: Re: Network notifications
  • Next by Date: Bindings for NSComboBox?
  • Previous by thread: NSPredicate and Arrays
  • Next by thread: libpq prepared statement
  • Index(es):
    • Date
    • Thread