[Adium-devl] AppleScript has some problems.
catfish.man at gmail.com
Fri Sep 28 17:08:54 UTC 2007
isOnLeopardOrBetter = [NSApp isOnLeopardOrBetter];
Somehow it showed up on my shark profile yesterday at around the same
% as those image loads. Perhaps that was just a weird side effect of
called [NSApplication sharedApplication] in +load.
On Sep 28, 2007, at 10:00 AM, Peter Hosey wrote:
> 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.
> Adium-devl mailing list
> Adium-devl at adiumx.com
More information about the Adium-devl