Re: Style Advice for using NSEnumerator

2010-05-18 Thread Carlton Gibson
On 17 May 2010, at 20:57, Quincey Morris wrote: > What's wrong with the direct approach? The best enumerator is no enumerator > (written in Mail): > >> NSArray *strokeColors = [NSArray arrayWithObjects: >> [UIColor redColor], [UIColor orangeColor, [UIColor yellowColor], [UIColor >> greenColo

Re: Style Advice for using NSEnumerator

2010-05-17 Thread Quincey Morris
On May 17, 2010, at 06:32, Carlton Gibson wrote: > // Set up the stroke colors (and the variables for enumeration) > NSArray *strokeColors = [NSArray arrayWithObjects: >@"redColor", @"orangeColor", @"yellowColor", @"greenColor", >@"blueColor", @"cyanColor", @"magentaColor", nil]; > NSEnum

Re: Style Advice for using NSEnumerator

2010-05-17 Thread Ignacio Enriquez
for using NSEnumerator To: Cocoa Developer Message-ID: <4509929f-8b9b-4db3-9832-9ad968124...@noumenal.co.uk> Content-Type: text/plain;charset=us-ascii Hi All, I'm still coming to grips with Cocoa and I'm wondering if any list members would be kind enough just to review a sma

Style Advice for using NSEnumerator

2010-05-17 Thread Carlton Gibson
Hi All, I'm still coming to grips with Cocoa and I'm wondering if any list members would be kind enough just to review a small code fragment for style advice... The following occurs as part of the drawRect method of a UIView subclass. The method simply draws concentric circles inside the view