I would expect something like this:

//you have this already: NSDictionary annotationDict = new NSDictionary();

UIColor *color = ARandomColor(); // ARandomColor Returns a Random UIColor ;)
            lock (this)
            {
                foreach(var key in annotationDict)
                {
                    var annotations = annotationDict.ValueForKey(key);
//annotations is an NSArray, so it's a Dictionary<string, NSArray>

// I guess this loops over each object in the array, and calls
SetColor(color) on it.
                    annotations.MakeObjectsPerformSelector(new
Selector("setColor:"), color);
//somehow update it.

this.ProviderDelegate.UpdateAnnotations(annotations, null, true);

                }
            }

It appears that NSDictionary in MonoTouch doesn't map
enumerateKeysAndObjectsUsingBlock:, but that said, it might be that
it's been internally wrapped into something more .NET-specific, 'cos
that's UGLY :)


On Fri, Nov 30, 2012 at 2:23 PM, Alex Soto <[email protected]> wrote:
> enumerateKeysAndObjectsUsingBlock



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to