Re: Libraries and effiency
Re: Libraries and effiency
- Subject: Re: Libraries and effiency
- From: Philip Aker <email@hidden>
- Date: Fri, 6 Aug 2010 04:35:14 -0700
On 2010-08-06, at 04:20:32, Philip Aker wrote:
> On 2010-08-06, at 04:05:37, Tommy Bollman wrote:
>
>> Last night I looked at Tetsuros code, and his way of make this mechanism work, taking for granted that the code does what it is supposed to do. It is all very clever, but IMHO, this approach is dangerous.
>
>> The things I find dangerous is that you can't hardcode paths to libraries, and that the module loader will search several libraries and use the script library found in the latest path. It is stuff like this that creates situations where it is very hard to detect what is really going on when something is at err.
>
> I'm not sure what you're getting at.
>
> Tetsuro is using FSFindFolder(). The fallback mechanism for standard system paths is used all over the place in Mac OS X — for instance if you place a custom framework in /Library/Frameworks/Tcl.framework, then it overrides the one in /System/Library/Frameworks/Tcl.framework.
Well, actually that's not such a good example for the situation at hand. A better one would be the preferences located in /Library/Preferences v.s. those in ~/Library/Preferences.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden