[Mono-osx] [MonoMac] NSPredicateEditor Control and Sample

kjpou kjpou at pt.lu
Mon Nov 29 00:23:52 EST 2010


Miguel and Geoff

Here is the post that was mentioned in the last post.

On 11/23/10 7:32 AM, kjpou wrote:
> Here is another sample that adds support for the NSPredicate editor.
>
> 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.
>
> The additions are not complete.  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.  The ones that I did see 
> and could change were updated.
>
> 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.
>
> Where can I find the source for the plugin so that I can take a look 
> at it?
>
> A summary of the additions are here:
>
> MonoMac appkit.cs
>
> using MonoMac.CoreData;
>
>             [BaseType (typeof (NSObject))]
>
>             interface NSPredicateEditorRowTemplate {
>
>             [BaseType (typeof (NSControl), Delegates=new string [] { 
> "Delegate" }, Events=new Type [] { typeof (NSRuleEditorDelegate)})]
>
>             interface NSRuleEditor {
>
>             [BaseType (typeof (NSObject))]
>
>             [Model]
>
>             interface NSRuleEditorDelegate {
>
>             [BaseType (typeof (NSRuleEditor))]
>
>             interface NSPredicateEditor {
>
> MonoMac enums.cs
>
>             public enum NSRuleEditorRowType{
>
>             public enum NSRuleEditorNestingMode {
>
> Maccore foundation.cs
>
>             [BaseType (typeof (NSObject))]
>             [Since (4,0)]
>             interface NSPredicate {
>
>             [BaseType (typeof (NSPredicate))]
>
>             interface NSComparisonPredicate {
>
>             [BaseType (typeof (NSPredicate))]
>
>             interface NSCompoundPredicate {
>
>             [BaseType (typeof (NSObject), Delegates=new string [] { 
> "Delegate" }, Events=new Type [] { typeof (NSMetadataQueryDelegate)})]
>
>             interface NSMetadataQuery {
>
>             [BaseType (typeof (NSObject))]
>
>             [Model]
>
>             interface NSMetadataQueryDelegate {
>
>             [BaseType (typeof (NSObject))]
>
>             interface NSMetadataItem {
>
>             [BaseType (typeof (NSObject))]
>
>             interface NSMetadataQueryAttributeValueTuple {
>
>             [BaseType (typeof (NSObject))]
>
>             interface NSMetadataQueryResultGroup {
>
> Maccore enum.cs
>
>             public enum NSComparisonPredicateModifier
>
>             public enum NSPredicateOperatorType
>
>             public enum NSComparisonPredicateOptions : uint
>
>             public enum NSCompoundPredicateType
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101129/fd2a3df1/attachment.html 


More information about the Mono-osx mailing list