Questions tagged as 'nspredicate'

1
answer

How to configure NSPredicate to perform filtering?

I'm implementing a filter, where I need to search the records in Core Data, which have "yes" in certain columns. Table: Forexample,returningtheelementsthathaveyesinthecolumnsATTRIBUTE1,ATTRIBUTE3,andATTRIBUTE5InthisexampleIwouldreturnthere...
asked by 26.02.2015 / 17:50
1
answer

Inherited NSPredicate Filter

I have a structure in Core Data like this: Cliente --- id = inteiro --- dados = Pessoa Pessoa --- nome = string PessoaFisica < Pessoa --- cpf = string PessoaJuridica < Pessoa --- cnpj = string How can I filter Customer based on...
asked by 29.05.2014 / 16:12
2
answers

Optimize NSPredicate with MagicalRecord

First of all, follow my model: Classes:@interfaceMMEAlbum:NSManagedObject...outraspropriedades@property(nonatomic,retain)NSNumber*album_upcoming;@property(nonatomic,retain)NSSet*songs;@end--------@interfaceMMESong:NSManagedObject@property(n...
asked by 14.08.2014 / 17:01
1
answer

How to use an NSString to create an NSPredicate?

I'm creating a custom search, however I'm creating the predicate strings as an NSString. But I'm getting an error. Code used: NSMutableString* escolhasSIM = [[NSMutableString alloc]init]; // Posição 0 if ([[arrayEscolhas objectAtIndex:...
asked by 27.03.2015 / 18:37