I am trying to configure NSPredicateEditor (in Interface Builder) to edit a predicate for NSMetadataQuery .
As a first step, I'm trying to configure NSPredicateEditorRowTemplate to accept key paths for the left expression by trying one keyPath ( kMDItemTextContent ) to start.
I cannot figure out how to get all the parts in IB. I selected the line pattern and set "Left Exprs" to "Key Paths" in the Inspector IB Attributes. But, using the Apple PhotoSearch example as a model, it seems that I should enter the name of the user to be read here (for example, βContentβ); I cannot figure out how to bind it to " kMDItemTextContent ".
I parsed the (correctly configured) NIB in PhotoSearch (*), and inside it there is NSKeyPathExpression defining a metadata attribute attached to NSPopUpButton / NSPopUpButtonCell .
I cannot figure out where to go to IB to find NSPopUpButton , and I'm not sure what I would do to bind it to NSExpression .
Any help was appreciated.
(*) In case you are interested, I ended up in NIB, converting it to XIB, confirming that it is still building correctly, and then exploring it with BBEdit.
source share