Questions tagged [nspredicateeditorrow]

6 questions
5
votes
1 answer

Merging multiple localized left key paths in the same NSPredicateEditorRowTemplate?

I'm attempting to replicate the Finder's NSPredicateEditor-based metadata search in an app. I'd prefer to get the Finder's exact NSPredicateEditor for free, but unless anyone has a better answer for that question it looks like I'm going to have to…
pkamb
  • 33,281
  • 23
  • 160
  • 191
1
vote
3 answers

Why is NSPredicateEditor automatically localizing some Expression strings? How to disable?

I'm finding that some NSPredicateEditor / NSPredicateEditorRowTemplate values are being localized automatically by OS X. This is easily observable in the mapping of operators: .equalTo to the string is. But I just noticed that UTI strings are being…
pkamb
  • 33,281
  • 23
  • 160
  • 191
1
vote
2 answers

NSPredicateEditorRowTemplate and CoreData

I am trying to generate predicate editor templates for my Core Data entities. In my code I have the following: NSEntityDescription *descrip = [NSEntityDescription entityForName:@"Person" inManagedObjectContext:managedObjectContext]; NSArray…
0
votes
0 answers

Validate NSPredicate format

In my app user can create NSPredicates by using NSPredicateEditor. I want to validate that user entered correct RegEx in NSPredicateEditorRow by testing NSPredicate. @IBAction func predicateChanged(_ sender: NSPredicateEditor) { //I want to test…
Shmidt
  • 16,436
  • 18
  • 88
  • 136
0
votes
1 answer

NSPredicateEditor with Core Data relationship

I have a core data data model with two entities, Document and Field: Document: fields [to many relationship] Field: name fieldText fieldDate fieldNumber document [to one relationship] I am trying to set up an NSPredicateEditor to allow someone…
0
votes
0 answers

How do i get the removing predicate editor row after clicking on the "-" Button in NSPredicateEditor?

I have an NSPredicatedEditor with Custom Row Templates. I would like to know the removing custom row template after clicking on "-" in NSPredicateEditor. I have tried over-riding the below method which actually provides index as a parameter but it…