<!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">
    Hello Miguel and Geoff<br>
    <br>
    I posted it to the mono-osx list with the title [MonoMac]
    NSPredicateEditor Control and Sample on 11/23/10.<br>
    <br>
    It added support for NSPredicateEditor and NSMetadataQuery as well
    as delegates.<br>
    <br>
    Following shows the text that written and attached in that post are
    the diffs for maccore and monomac as well as the sample program.<br>
    <br>
    ---------------------------------------------------------<br>
    <br>
    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>
    <font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font><br>
    <br>
    On 11/29/10 6:07 AM, Miguel de Icaza wrote:
    <blockquote
      cite="mid:AANLkTikfQx3jAGqSLRVT5mYX8TgUS2PL5NT_OyUm6b_O@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div style="word-wrap: break-word;">
            <div>&nbsp;&nbsp;I commited another major fix to memory managment
              tonight, which resolved a regression I unfortunately
              introduced fixing another issue. &nbsp;My apologies for that.
              &nbsp;I cannot find a MonoMac sample for NSPredicateEditor, but
              other samples which use NSTableView appear to be resolved.
              &nbsp;If you have a demo which fails against trunk please send
              it to me.</div>
          </div>
        </blockquote>
        <div><br>
        </div>
        <div>I have not seen this sample either.</div>
        <div><br>
        </div>
        <div>Miguel</div>
      </div>
    </blockquote>
  </body>
</html>