[Adium-devl] AppleScript has some problems.
Peter Hosey
boredzo at gmail.com
Fri Sep 28 17:00:24 UTC 2007
On Sep 28, 2007, at 08:20:16, David Smith wrote:
> Out of curiosity, why are we checking in +initialize rather than
> using the standard static + if lazy initializer patter?
if (!isOnLeopardOrBetter)
isOnLeopardOrBetter = [NSApp isOnLeopardOrBetter];
…
More to the point, why not just call [NSApp isOnLeopardOrBetter]?
It's not like it's an expensive computation. I don't see the big win
of caching it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070928/df1b1f20/attachment.sig>
More information about the devel
mailing list