Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
It would be a huge benefit to include support for NSMutableArray. It includes the ability to remove the entire selection of an arrary without having to loop through the entire thing. I hope I am not missing where it is already included. If there is any way I can assist please let me know.
NSMutableArray was not bound on purpose, since you should be using native C# arrays instead.
This is a design decision. There needs to be a very compelling case for adding this to the public API for us to ship it.
The problem arises when attempting to delete all items from an Array Controller. ((NSMutableArray)arrayController.Content).RemoveAll(); //should work.
Instead I have to do:
NSObject  nsObject = arrayController.ArrangedObjects();
foreach (NSObject removeObject in NSObject)
I would much rather do 1 line instead of 3. I saw the NSMutableArray line in the MonoMac sample for ScriptingBridgeFinder. This line causes the solution to fail to build.
Should this not be:
arrayControleler.RemoteObjects (arrayController.ArrangedObjects ());
Unfortunately NSArrayController does not have a RemoveObjects() method. I tried arrayController.RemoveSelectedObjects(NSObject) but that only removes the selected object and not the entire list.
arrayController.Remove() will accept an array of objects. This will work instead of having to implement NSMutableArray.
The new code that works is:
I am closing as wont fix since NSMutableArray is not needed and wont be included per the initial response. Thanks for the prompt responses!