高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】mac version where is adinit.dat and where should it be
mac version : where is adinit.dat and where should it be
mac version : where is adinit.dat and where should it be
1) in the macintosh version of dwgdirect 1.14 , we could not find a copy af adinit.dat. where is it or from where should it be taken ?
2) once the macintosh client app is linked (aka bundelized) with xcode, where adinit.dat should be stored in the app bundle to be properly retrieved by inifile = svcs.findfile("adinit.dat") ?
3) do i understand well when i say that there is an implementation of "findfile" for the mac plateform in the class exsystemservices or exhostappservices, or should i provide one ?
thanks
jph
1. adinit.dat can be taken from odt (c toolkit)
2. adinit.dat should be properly located by svcs.findfile("adinit.dat"). for better performance you can specify full path.
3. default implementation exists. you can override it.
sergey slezkin
mac version - where to put adinit.dat in the app bundle ?
as you know, a macintosh application is a bundle, which is a special folder wich contains other folders , among which a "macos" folder and a "resources" folder himself containing localized resources.
the question is : in which of these folders should we put the adinit.dat file so that it can be found by the the standard findfile implementation ?
thanks
jph
findfile() typical search order is as follows:
-the filename itself.
-the current directory.
-the drawing directory (for shx font, image, and xref files).
-the directories listed in the acad environment variable.
-the windows fonts directory (only for ttf fonts on windows).
the most reliable and efficient way is to specify full path name for adinit.dat while initializing charmapper.
sergey slezkin
|