[Mono-osx] [MonoMac] NSPredicateEditor Control and Sample
kjpou
kjpou at pt.lu
Mon Nov 29 04:19:50 EST 2010
Hello Geoff
The updates are attached below. They include the Sample and diff files
for maccore (foundation.diff) and monomac (NSPredicateEditor.diff)
It looks like I am missing some of the clean up that I did but at least
the sample is there with the diffs. As I modify the sample to add tests
for saving and reading NSPredicate to and from file I will re-apply the
clean up I did for NSArray to using array objects XXXXXX[].
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
>>>
>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101129/8f8764a4/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PredicateEditorSample.zip
Type: application/zip
Size: 2173101 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20101129/8f8764a4/attachment-0001.zip
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: foundation.diff
Url: http://lists.ximian.com/pipermail/mono-osx/attachments/20101129/8f8764a4/attachment-0002.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: NSPredicateEditor.diff
Url: http://lists.ximian.com/pipermail/mono-osx/attachments/20101129/8f8764a4/attachment-0003.pl
More information about the Mono-osx
mailing list