[Drawkit] Fast Enumeration

Rudy Richter rudy at AmbrosiaSW.com
Fri Jul 23 21:20:55 PDT 2010


I'm definitely in favor of leaving 10.4 support by the wayside.  Fast Enumeration and properties(and subsequently kvo notifications on property changes) are big on the list of benefits to going 10.5+.

-rudy

On Jul 23, 2010, at 9:49 PM, Graham Cox wrote:

> Hi all,
> 
> I've been reworking app-level code to use Fast Enumeration, and I really like the syntax and the added performance. I'm thinking DK might benefit from this in places. Of course, that would make 10.5 the minimum OS that DK could be used with. Alternatively, it's possible to wrap enumeration in a macro that switches between old enumerators and fast enumeration depending on which SDK you are building with, but having experimented with it, it makes for less readable and rather ugly code.
> 
> The question I'd put to everyone is whether losing 10.4 support is considered a reasonable price to pay for having DK use fast enumeration (throughout, eventually) or not, or whether having an ugly macro is acceptable to allow 10.4 to stay on board while using fast enumeration for later SDKs.
> 
> A wider question is to do with adopting newer approaches anyway - as 10.6 and later will gradually allow more and more things to be done with threads to get performance (particularly as it moves to a concurrent view-drawing model), leaving DK stuck in the 10.4 era will prevent us getting the benefit of these.
> 
> --Graham
> 
> 
> _______________________________________________
> Drawkit mailing list
> Drawkit at lists.apptree.net
> http://lists.apptree.net/listinfo.cgi/drawkit-apptree.net



More information about the Drawkit mailing list