[Mono-osx] MonoMac parser.cs

Duane Wandless duane at wandless.net
Tue Apr 20 15:10:34 EDT 2010

I stand corrected on this scenario... all that code I have to maintain the
NSMutableArray does not actually do what I thought it did.  It appears the
NSArrayController is always required to rebind to the modified array.
(There are other ways to prevent the rebind but the important note is my
assumption was incorrect.)  And my obj-c UI guy was doing just that when the
array was modified.  Learned something new again thanks to Mono!


On Tue, Apr 20, 2010 at 1:46 PM, Miguel de Icaza <miguel at novell.com> wrote:

> Hello,
>  In the particular case of NSArray and NSMutableArray our runtime has been
>>> extended to natively convert NSArrays to C# arrays and back so the only code
>>> that we bound is the required interop code for NSArray.
>> That is an interesting strategy and is limiting (I think).  How I use
>> NSMutableArrays is to populate them in C# then send then to the native obj-c
>> UI NSArrayControllers, etc.  I then can manipulate the array in C# and the
>> UI updates as expected.  If the only bindings exposed are to convert from a
>> List to NSArray then this use would not be possible.
> Please post a sample;  I looked at NSArrayController and it does not seem
> to take ownership and management of the array.
> Miguel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20100420/8a109bac/attachment.html 

More information about the Mono-osx mailing list