• 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: Do I Need Multiple NSArrayControllers For This?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do I Need Multiple NSArrayControllers For This?


  • Subject: Re: Do I Need Multiple NSArrayControllers For This?
  • From: Negm-Awad Amin <email@hidden>
  • Date: Wed, 10 Sep 2008 10:58:51 +0200


Am Di,09.09.2008 um 16:11 schrieb Jamie Phelps:

I have a Core Data entity that has a date and relationship. I want to create a label like.

"25 Foos (12 New)"

A Foo is active if it its relationship is null and it is new if its date is within the startDate and endDate specified by the user.

My intuition is that this does require two NSArrayControllers each with a filter predicate binding to get the desired array of Foos, but I wanted to see if there was anything I hadn't considered.

Thanks,
Jamie
I do not know, whether I understood your question correct. If so:
You can combine conditions with logical operators

http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/Articles/pSyntax.html#/ /apple_ref/doc/uid/TP40001795-215851

and you can use BETWEEN to check for a (date) range.

http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/Articles/pSyntax.html#/ /apple_ref/doc/uid/TP40001795-215832

Cheers,
Amin


_______________________________________________

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

Amin Negm-Awad 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: 
 >Do I Need Multiple NSArrayControllers For This? (From: Jamie Phelps <email@hidden>)

  • Prev by Date: Re: Multiple Document types
  • Next by Date: Re: Problems with Key Observing Registration Performance
  • Previous by thread: Do I Need Multiple NSArrayControllers For This?
  • Next by thread: Re: Do I Need Multiple NSArrayControllers For This?
  • Index(es):
    • Date
    • Thread