Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e164bd83
Kaydet (Commit)
e164bd83
authored
Agu 10, 1995
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documented FindFolder, GetFInfo, SetFInfo and the FInfo object.
üst
ea79c876
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
0 deletions
+96
-0
libmacfs.tex
Doc/libmacfs.tex
+48
-0
libmacfs.tex
Doc/mac/libmacfs.tex
+48
-0
No files found.
Doc/libmacfs.tex
Dosyayı görüntüle @
e164bd83
...
...
@@ -28,6 +28,10 @@ alias as a string. This is mainly useful if you have obtained an
FSSpec structure over a network.
\end{funcdesc}
\begin{funcdesc}
{
FInfo
}{}
Create a zero-filled FInfo object.
\end{funcdesc}
\begin{funcdesc}
{
ResolveAliasFile
}{
file
}
Resolve an alias file. Returns a 3-tuple
\code
{
(
\var
{
fsspec
}
,
\var
{
isfolder
}
,
\var
{
aliased
}
)
}
where
\var
{
fsspec
}
is the resulting FSSpec object,
...
...
@@ -57,6 +61,16 @@ Present the user with a non-standard ``select a directory''
dialog. Return an FSSpec object and a success-indicator.
\end{funcdesc}
\begin{funcdesc}
{
FindFolder
}{
where
\,
which
\,
create
}
Locates one of the ``special'' folders that MacOS knows about, such as
the trash or the Preferences folder.
\var
{
Where
}
is the disk to search
(
\code
{
0x8000
}
for the boot disk),
\var
{
which
}
is the 4-char string
specifying which folder to locate. Setting
\var
{
create
}
causes the
folder to be created if it does not exist. Returns a
\code
{
(vrefnum,
dirid)
}
tuple. See Inside Mac VI for a complete description, including
4-char names.
\end{funcdesc}
\subsection
{
FSSpec objects
}
\renewcommand
{
\indexsubitem
}{
(FSSpec object attribute)
}
...
...
@@ -93,6 +107,15 @@ Return the 4-char creator and type of the file.
Set the 4-char creator and type of the file.
\end{funcdesc}
\begin{funcdesc}
{
GetFInfo
}{}
Return a FInfo object describing the finder info for the file.
\end{funcdesc}
\begin{funcdesc}
{
SetFInfo
}{
finfo
}
Set the finder info for the file to the values specified in the
\var
{
finfo
}
object.
\end{funcdesc}
\subsection
{
alias objects
}
\renewcommand
{
\indexsubitem
}{
(alias object attribute)
}
...
...
@@ -125,3 +148,28 @@ is responsible for getting the \var{data} from the alias object and
modifying the resource.
\subsection
{
FInfo objects
}
See Inside Mac for a complete description of what the various fields
mean.
\renewcommand
{
\indexsubitem
}{
(FInfo object attribute)
}
\begin{datadesc}
{
Creator
}
The 4-char creator code of the file.
\end{datadesc}
\begin{datadesc}
{
Type
}
The 4-char type code of the file.
\end{datadesc}
\begin{datadesc}
{
Flags
}
The finder flags for the file as 16-bit integer.
\end{datadesc}
\begin{datadesc}
{
Location
}
A Point giving the position of the file's icon in its folder.
\end{datadesc}
\begin{datadesc}
{
Fldr
}
The folder the file is in (as an integer).
\end{datadesc}
Doc/mac/libmacfs.tex
Dosyayı görüntüle @
e164bd83
...
...
@@ -28,6 +28,10 @@ alias as a string. This is mainly useful if you have obtained an
FSSpec structure over a network.
\end{funcdesc}
\begin{funcdesc}
{
FInfo
}{}
Create a zero-filled FInfo object.
\end{funcdesc}
\begin{funcdesc}
{
ResolveAliasFile
}{
file
}
Resolve an alias file. Returns a 3-tuple
\code
{
(
\var
{
fsspec
}
,
\var
{
isfolder
}
,
\var
{
aliased
}
)
}
where
\var
{
fsspec
}
is the resulting FSSpec object,
...
...
@@ -57,6 +61,16 @@ Present the user with a non-standard ``select a directory''
dialog. Return an FSSpec object and a success-indicator.
\end{funcdesc}
\begin{funcdesc}
{
FindFolder
}{
where
\,
which
\,
create
}
Locates one of the ``special'' folders that MacOS knows about, such as
the trash or the Preferences folder.
\var
{
Where
}
is the disk to search
(
\code
{
0x8000
}
for the boot disk),
\var
{
which
}
is the 4-char string
specifying which folder to locate. Setting
\var
{
create
}
causes the
folder to be created if it does not exist. Returns a
\code
{
(vrefnum,
dirid)
}
tuple. See Inside Mac VI for a complete description, including
4-char names.
\end{funcdesc}
\subsection
{
FSSpec objects
}
\renewcommand
{
\indexsubitem
}{
(FSSpec object attribute)
}
...
...
@@ -93,6 +107,15 @@ Return the 4-char creator and type of the file.
Set the 4-char creator and type of the file.
\end{funcdesc}
\begin{funcdesc}
{
GetFInfo
}{}
Return a FInfo object describing the finder info for the file.
\end{funcdesc}
\begin{funcdesc}
{
SetFInfo
}{
finfo
}
Set the finder info for the file to the values specified in the
\var
{
finfo
}
object.
\end{funcdesc}
\subsection
{
alias objects
}
\renewcommand
{
\indexsubitem
}{
(alias object attribute)
}
...
...
@@ -125,3 +148,28 @@ is responsible for getting the \var{data} from the alias object and
modifying the resource.
\subsection
{
FInfo objects
}
See Inside Mac for a complete description of what the various fields
mean.
\renewcommand
{
\indexsubitem
}{
(FInfo object attribute)
}
\begin{datadesc}
{
Creator
}
The 4-char creator code of the file.
\end{datadesc}
\begin{datadesc}
{
Type
}
The 4-char type code of the file.
\end{datadesc}
\begin{datadesc}
{
Flags
}
The finder flags for the file as 16-bit integer.
\end{datadesc}
\begin{datadesc}
{
Location
}
A Point giving the position of the file's icon in its folder.
\end{datadesc}
\begin{datadesc}
{
Fldr
}
The folder the file is in (as an integer).
\end{datadesc}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment