[Adium-devl] AppleScript has some problems.

David Smith catfish.man at gmail.com
Fri Sep 28 17:08:54 UTC 2007


if(!loadedOSVersion)
	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.


									David

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
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com





More information about the devel mailing list