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

kjpou kjpou at pt.lu
Mon Nov 29 01:29:41 EST 2010


Hello Geoff and all

I will have to upload it a little later.  I was in the middle of 
modifying the sample to save the NSPredicate settings to a file and 
reading it back in.  Will put it back to original and send the updates 
which means I need to re-apply my patches to the sources here.  Will 
also send new diffs as the other ones are probably out of date now.

Kenneth

On 11/29/10 6:27 AM, kjpou wrote:
> Geoff
>
> Sorry about that.  Will definitely send the C# one now.
>
> Kenneth
>
> On 11/29/10 6:25 AM, Geoff Norton wrote:
>> Kenneth,
>>
>>   This email had an Objective-C XcodeProject attached, not a MonoMac 
>> project.
>>
>> -g
>>
>> On 2010-11-29, at 12:23 AM, kjpou wrote:
>>
>>> 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
>>>>
>>>>
>>
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101129/e8467f6a/attachment.html 


More information about the Mono-osx mailing list