[Mono-osx] MonoMac parser.cs
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:
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-osx