Skip navigation.
 
mlRe: NSPredicateEditor
FROM : Jim Turner
DATE : Wed Jun 25 15:57:27 2008

On Wed, Jun 25, 2008 at 1:08 AM, Chris <<email_removed>> wrote:
> Let's say I create a NSPredicateEditor and it looks like this:
>
> --------------------
> [All] of the following are true:
> --------------------
> [Name] equals [        ]
> -------------------
>
> So the user enters say "Fred" and the predicate returned is "Name == Fred".
>
> Later on, I reload that predicate into the NSPredicateEditor and it looks
> like this:
>
> --------------------
> [Name] equals [ Fred ]
> -------------------
>
> But now there is no option to change it to say:
>
> [Some] of the following are true:
>
> because that line isn't shown.
>
> How do I make that line reappear the next time?


By default, the NSPredicateEditor object in IB creates a compound
predicate.  Wrap your "Name == Fred" predicate in a compound predicate
before reloading it in the editor and the Any/All/None row should
return.

--
Jim
http://nukethemfromorbit.com

Related mailsAuthorDate
mlNSPredicateEditor Chris Jun 25, 08:08
mlRe: NSPredicateEditor Jim Turner Jun 25, 15:57
mlRe: NSPredicateEditor Chris Jun 25, 16:19
mlRe: NSPredicateEditor Peter Ammon Jun 25, 22:12
mlNSPredicateEditor Chris Jun 26, 04:27
mlRe: NSPredicateEditor Kyle Sluder Jun 26, 14:53
mlRe: NSPredicateEditor Peter Ammon Jun 27, 02:09
mlRe: NSPredicateEditor Chris Jun 27, 03:48
mlRe: NSPredicateEditor Peter Ammon Jul 4, 01:30