• 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
Predicate on an ArrayController updated automatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Predicate on an ArrayController updated automatically?


  • Subject: Predicate on an ArrayController updated automatically?
  • From: Alexander Lamb <email@hidden>
  • Date: Tue, 31 Oct 2006 16:58:23 +0100

Hello list,

I have an ArrayController filled with objects (CoreData app, ArrayController using entity).

I now need another ArrayController which is a subset of this first one. The subset is defined by an attribute of the objects in the first ArrayController.

I thought:

- create a new ArrayController
- bind the content array to the first controller
- add a predicate in the Attributes of the sub ArrayController (the predicate is myBoolVariable != 0 ) (to say all the objects where myBoolVariable is YES)


Problems:

- I get the complete list, even the predicate is not applied
- How can I register for updates to make sure if any of the myBoolVariable changes the predicate is recalculated


Thanks!

Alex
--
Alexander Lamb
email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: OT macro questions ?
  • Next by Date: Re: Open my Application via safari
  • Previous by thread: Re: Open my Application via safari
  • Next by thread: Cocoa wrapper around C++ code, what is the best idiom for wrapping STL style iterators?
  • Index(es):
    • Date
    • Thread