Re: Predicate expressions

2008-06-01 Thread Hamish Allan
On Sun, Jun 1, 2008 at 8:26 PM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Sat, May 31, 2008 at 4:57 PM, Fabian <[EMAIL PROTECTED]> wrote: >> NSArray *arrayB = [self getObjects] ; >> >> NSArray *titles = [arrayB arrayByApplyingSelector:@selector(title)]; >> NSArray *subtitles = [arrayB arrayByApp

Re: Predicate expressions

2008-06-01 Thread Hamish Allan
On Sat, May 31, 2008 at 9:57 PM, Fabian <[EMAIL PROTECTED]> wrote: > I'm trying to figure out how to use NSExpressions in a predicate but > find the documentation a bit deficient. I'm not convinced it's a documentation issue! You could achieve what you want to do by creating a transient, read-on

Re: Predicate expressions

2008-06-01 Thread Kyle Sluder
On Sat, May 31, 2008 at 4:57 PM, Fabian <[EMAIL PROTECTED]> wrote: > NSArray *arrayB = [self getObjects] ; > > NSArray *titles = [arrayB arrayByApplyingSelector:@selector(title)]; > NSArray *subtitles = [arrayB arrayByApplyingSelector:@selector(subtitle)]; > > NSPredicate *predicate = [NSPredicate

Predicate expressions

2008-05-31 Thread Fabian
Hello, I'm trying to figure out how to use NSExpressions in a predicate but find the documentation a bit deficient. Here is what I want to do: I have an array - array A - containing objects with a "title" and "subtitle" property. I want to filter this array so it only contains the objects in arra