Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eecdc7f

Browse files
committed
A bunch of nits fix and some additional information added by Chris
Barker <[email protected]>.
1 parent 8f176ac commit eecdc7f

2 files changed

Lines changed: 18 additions & 13 deletions

File tree

Doc/mac/libmacfs.tex

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ \section{\module{macfs} ---
1515

1616
Whenever a function or method expects a \var{file} argument, this
1717
argument can be one of three things:\ (1) a full or partial Macintosh
18-
pathname, (2) an \pytype{FSSpec} object or (3) a 3-tuple \code{(\var{wdRefNum},
19-
\var{parID}, \var{name})} as described in \citetitle{Inside
20-
Macintosh:\ Files}. A description of aliases and the Standard File
21-
package can also be found there.
18+
pathname, (2) an \pytype{FSSpec} object or (3) a 3-tuple
19+
\code{(\var{wdRefNum}, \var{parID}, \var{name})} as described in
20+
\citetitle{Inside Macintosh:\ Files}. A description of aliases and the
21+
Standard File package can also be found there.
22+
23+
\strong{Note:} A module, \refmodule{macfsn}, is auto-imported to replace
24+
StandardFile calls in macfs with NavServices calls.
2225

2326
\begin{funcdesc}{FSSpec}{file}
2427
Create an \pytype{FSSpec} object for the specified file.
@@ -59,7 +62,7 @@ \section{\module{macfs} ---
5962

6063
\begin{funcdesc}{PromptGetFile}{prompt\optional{, type, \moreargs}}
6164
Similar to \function{StandardGetFile()} but allows you to specify a
62-
prompt.
65+
prompt which will be displayed at the top of the dialog.
6366
\end{funcdesc}
6467

6568
\begin{funcdesc}{StandardPutFile}{prompt\optional{, default}}
@@ -71,9 +74,11 @@ \section{\module{macfs} ---
7174
\end{funcdesc}
7275

7376
\begin{funcdesc}{GetDirectory}{\optional{prompt}}
74-
Present the user with a non-standard ``select a directory''
75-
dialog. \var{prompt} is the prompt string, and the optional.
76-
Return an \pytype{FSSpec} object and a success-indicator.
77+
Present the user with a non-standard ``select a directory'' dialog. You
78+
have to first open the directory before clicking on the ``select current
79+
directory'' button. \var{prompt} is the prompt string which will be
80+
displayed at the top of the dialog. Return an \pytype{FSSpec} object and
81+
a success-indicator.
7782
\end{funcdesc}
7883

7984
\begin{funcdesc}{SetFolder}{\optional{fsspec}}
@@ -84,7 +89,7 @@ \section{\module{macfs} ---
8489
current directory, i.e. what \function{os.getcwd()} returns.
8590

8691
Note that starting with system 7.5 the user can change Standard File
87-
behaviour with the ``general controls'' controlpanel, thereby making
92+
behaviour with the ``general controls'' control panel, thereby making
8893
this call inoperative.
8994
\end{funcdesc}
9095

@@ -106,7 +111,7 @@ \section{\module{macfs} ---
106111
\end{funcdesc}
107112

108113
\begin{funcdesc}{FindApplication}{creator}
109-
Locate the application with 4-char creator code \var{creator}. The
114+
Locate the application with 4-character creator code \var{creator}. The
110115
function returns an \pytype{FSSpec} object pointing to the application.
111116
\end{funcdesc}
112117

Doc/mac/libmacic.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ \section{\module{ic} ---
1212
default homepage, etc. Also, Internet Config contains an elaborate set
1313
of mappings from Macintosh creator/type codes to foreign filename
1414
extensions plus information on how to transfer files (binary, ascii,
15-
etc).
15+
etc.). Since MacOS 9, this module is a control panel named Internet.
1616

1717
There is a low-level companion module
1818
\module{icglue}\refbimodindex{icglue} which provides the basic
@@ -61,7 +61,7 @@ \subsection{IC Objects}
6161
The module knows about various datatypes, and converts the internal IC
6262
representation to a ``logical'' Python data structure. Running the
6363
\module{ic} module standalone will run a test program that lists all
64-
keys and values in your IC database, this will have to server as
64+
keys and values in your IC database, this will have to serve as
6565
documentation.
6666

6767
If the module does not know how to represent the data it returns an
@@ -84,7 +84,7 @@ \subsection{IC Objects}
8484
Find an URL somewhere in \var{data} and return start position, end
8585
position and the URL. The optional \var{start} and \var{end} can be
8686
used to limit the search, so for instance if a user clicks in a long
87-
textfield you can pass the whole textfield and the click-position in
87+
text field you can pass the whole text field and the click-position in
8888
\var{start} and this routine will return the whole URL in which the
8989
user clicked. As above, \var{hint} is an optional scheme used to
9090
complete incomplete URLs.

0 commit comments

Comments
 (0)