[Mono-osx] MonoMac: patch to add coredata

Duane Wandless duane at wandless.net
Wed Jul 14 08:48:22 EDT 2010


Here is the update to coredata.cs.

I've also included a patch to generator.cs to handle binding (coredata uses
(NSError**) heavily):
//+ (NSData *)sendSynchronousRequest:(NSURLRequest *)request
returningResponse:(NSURLResponse **)response error:(NSError **)error
[Static, Export ("sendSynchronousRequest:returningResponse:error:")]
NSData SynchronousRequest (NSUrlRequest request, out NSUrlResponse response,
out NSError error);

In genetator.cs:
* added the ability to bind out parameters

In foundation.cs:
* added binding for sendSynchronousRequest on NSUrlConnection
* added binding for NSForegroundColorAttributeName
* exposed binding for setValue:forHTTPHeaderField: on NSMutableURLRequest
* added binding for NSExpression

In coredata.cs:
* added strongly typed arrays
* added CoreDataEnum.cs

I have a couple more changes/issues that I'll follow up with later.
Thanks,
Duane


On Sat, Jul 10, 2010 at 12:03 PM, Miguel de Icaza <miguel at novell.com> wrote:

> Hello,
>
>     The CoreData binding is not suitable for inclusion in MonoMac since it
> uses NSArrays instead of strongly-typed arrays.   Although some auditing
> work was done on the result from the header parser, I do not want to add any
> APIs that expose NSArrays (there are special cases for this, for low-level
> interfaces, but they are special cases, not the rule).
>
>     When you resubmit, also remove all of the original selector comments
> that the parser left in place.
>
> Miguel.
>
> On Fri, Jul 9, 2010 at 12:23 PM, Duane Wandless <duane at wandless.net>wrote:
>
>> Not all of the coredata bindings have been tested.  The basic
>> functionality of a CoreData application does work.
>>
>> Duane
>>
>> _______________________________________________
>> 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/20100714/2014d947/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile_coredata.patch
Type: application/octet-stream
Size: 543 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20100714/2014d947/attachment-0005.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coredata.cs
Type: application/octet-stream
Size: 23330 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20100714/2014d947/attachment-0006.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CoreDataEnum.cs
Type: application/octet-stream
Size: 1244 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20100714/2014d947/attachment-0007.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_foundation.diff
Type: application/octet-stream
Size: 3875 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20100714/2014d947/attachment-0008.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_generator.diff
Type: application/octet-stream
Size: 3991 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20100714/2014d947/attachment-0009.obj 


More information about the Mono-osx mailing list