trFunc
Type Definitions
SFReply structure used in older Standard File Package calls
SFTypeList simply a list of 0 or more OSTypes (ie, long ints)
StandardFileReply structure used in new System 7 Standard File Package
calls
HFSDefaults default values used by DIFormat
typedef pascal void (*ActivateYDProcPtr)(DialogPtr theDialog, short
itemNo, Boolean activating, void *yourDataPtr);
typedef pascal short (*DlgHookProcPtr)( short item, DialogPtr theDialog);
typedef pascal short (*DlgHookYDProcPtr)( short item, DialogPtr theDialog,
void *yourDataPtr);
typedef pascal Boolean (*FileFilterProcPtr)(ParmBlkPtr PB);
typedef pascal Boolean (*FileFilterYDProcPtr)(ParmBlkPtr PB, void
*yourDataPtr);
typedef pascal Boolean (*ModalFilterYDProcPtr)(DialogPtr theDialog,
EventRecord *theEvent, short *itemHit, void
*yourDataPtr);
Constants
putDlgID -3999 Dialog resource ID used by SFPutFile, et. al
putSave 1 ... items in its 'DITL' resource
putCancel 2
putEject 5
putDrive 6
putName 7
getDlgID -4000 Dialog resource ID used by SFGetFile, et. al
getOpen 1 ... items in its 'DITL' resource
getCancel 3
getEject 5
getDrive 6
getNmList 7
getScroll 8
Pack numbers used in InitPack
listMgr 0
dskInit 2
stdFile 3
flPoint 4
trFunc 5
intUtil 6
bdConv 7
editionMgr 11
Gestalt selector and reply
gestaltStandardFileAttr 'stdf'
gestaltStandardFile58 0
Standard dialog resource IDs
sfPutDialogID -6043 Save dialog box
sfGetDialogID -6042 Open dialog box
Default items in dialog boxes
sfItemOpenButton 1 Save or Open button
sfItemCancelButton 2 Cancel button
sfItemBalloonHelp 3 Balloon Help
sfItemVolumeUser 4 volume icon and name
sfItemEjectButton 5 Eject button
sfItemDesktopButton 6 Desktop button
sfItemFileListUser 7 display list
sfItemPopUpMenuUser 8 directory pop-up menu
sfItemDividerLinePict 9 dividing line between buttons
Items that appear in Save dialog boxes only
sfItemFileNameTextEdit 10 filename field
sfItemPromptStaticText 11 filename prompt text area
sfItemNewFolderUser 12 New Folder button
Pseudo-items available prior to System 7.0
sfHookFirstCall -1 initialize display
sfHookCharOffset 0x01000 offset for character input
sfHookNullEvent 100 null event
sfHookRebuildList 101 redisplay list
sfHookFolderPopUp 102 display parent-directory menu
sfHookOpenFolder 103 display contents of selected folder or volume
Additional pseudo-items available with System 7.0
sfHookLastCall -2 clean up after display
sfHookOpenAlias 104 resolve alias
sfHookGoToDesktop 105 display contents of desktop
sfHookGoToAliasTarget 106 select target of alias
sfHookGoToParent 107 display contents of parent
sfHookGoToNextDrive 108 display contents of next drive
sfHookGoToPrevDrive 109 display contents of previous drive
sfHookChangeSelection 110 select target of reply record
sfHookSetActiveOffset 200 switch active item
refCon field in the window record in the dialog record
sfMainDialogRefCon 'stdf' main dialog box
sfNewFolderDialogRefCon 'nfdr' New Folder dialog box
sfReplaceDialogRefCon 'rplc' name conflict dialog box
sfStatWarnDialogRefCon 'stat' stationery warning
sfErrorDialogRefCon 'err ' general error report
sfLockWarnDialogRefCon 'lock' software lock warning
Do not use low memory global variables that are not documented.
No undocumented location below the system heap is guaranteed to be available
for use in future systems.
Variables
Name Address Size Description
SFSaveDisk 0x214 2 negated volume or working dir # used by StdFile
CurDirStore 0x398 4 hard ID of last directory opened
AppPacks[] 0xAB8 4xn Handles to the various package code and data