<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Miguel and Geoff<br>
    <br>
    Here is the post that was mentioned in the last post.<br>
    <br>
    On 11/23/10 7:32 AM, kjpou wrote:
    <blockquote cite="mid:4CEB5FF6.8020306@pt.lu" type="cite">Here is
      another sample that adds support for the NSPredicate editor.<br>
      <br>
      The sample shows how to use the NSPredicateEditor within a program
      and uses the NSMetadataQuery to query SpotLight for a list of
      names corresponding to the Predicates from your Address Book.<br>
      <br>
      The additions are not complete.&nbsp; Meaning that there are still some
      NSArray elements instead of native arrays XXXXX[] being used as
      did not have a test for them or did not use them.&nbsp; The ones that I
      did see and could change were updated.<br>
      <br>
      I do believe that the the NSPredicate will have to be added to the
      plugin or you will have to manually add using MonoMac.Appkit to
      the .designer.cs source.<br>
      <br>
      Where can I find the source for the plugin so that I can take a
      look at it?<br>
      <br>
      A summary of the additions are here:<font face="Arial" size="2"><span
          style="font-size: 10pt; font-family: Arial;"><br>
          <br>
          MonoMac appkit.cs</span></font>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">using
            MonoMac.CoreData;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSObject))]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSPredicateEditorRowTemplate {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSControl), Delegates=new string [] {
            "Delegate" }, Events=new Type [] { typeof
            (NSRuleEditorDelegate)})]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSRuleEditor {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSObject))]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [Model]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSRuleEditorDelegate {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSRuleEditor))]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSPredicateEditor {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">MonoMac
            enums.cs</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            public enum NSRuleEditorRowType{</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            public enum NSRuleEditorNestingMode {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">Maccore
            foundation.cs</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSObject))]<br>
            &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [Since (4,0)]<br>
            &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; interface NSPredicate {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSPredicate))]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSComparisonPredicate {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSPredicate))]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSCompoundPredicate {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSObject), Delegates=new string [] {
            "Delegate" }, Events=new Type [] { typeof
            (NSMetadataQueryDelegate)})]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSMetadataQuery {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSObject))]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [Model]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSMetadataQueryDelegate {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSObject))]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSMetadataItem {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSObject))]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSMetadataQueryAttributeValueTuple {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            [BaseType (typeof (NSObject))]</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            interface NSMetadataQueryResultGroup {</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">Maccore enum.cs</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            public enum NSComparisonPredicateModifier</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            public enum NSPredicateOperatorType</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            public enum NSComparisonPredicateOptions : uint</span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p>
      <p class="MsoNormal"><font face="Arial" size="2"><span
            style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            public enum NSCompoundPredicateType</span></font></p>
      <p class="MsoNormal"><font face="Times New Roman" size="3"><span
            style="font-size: 12pt;"></span></font></p>
    </blockquote>
  </body>
</html>