Re: Do I Need Multiple NSArrayControllers For This?
Re: Do I Need Multiple NSArrayControllers For This?
- Subject: Re: Do I Need Multiple NSArrayControllers For This?
- From: Benjamin Stiglitz <email@hidden>
- Date: Wed, 10 Sep 2008 09:40:03 -0400
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.
You might want a value transformer on the arrangedObjects of the array
controller: one that just returns the count, and one that returns the
count as filtered by a predicate.
-Ben
_______________________________________________
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