lotus



previous page: 4.11) Aren't we done with PBGetCatInfo soon? (Files - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 4.13) How do I find the folder my application started from? How do I find the application file that's running? (Files - Mac Programming)

4.12) How do I set what folder should initially be shown in the SFGetFile boxes? (Files - Mac Programming)




Description

This article is from the Mac Programming FAQ, by Jon Watte h+@austin.metrowerks.com with numerous contributions by others.

4.12) How do I set what folder should initially be shown in the SFGetFile boxes? (Files - Mac Programming)

You stuff the dirID you want to show into the lo-mem global
CurDirStore, and the NEGATIVE of the vRefNum you want into the lo-mem
global SFSaveDisk.

If you are using CustomGetFile and return sfSelectionChanged from an
"init" message handler, you must remember to clear the script code, else
the selection will not change.

 

Continue to:















TOP
previous page: 4.11) Aren't we done with PBGetCatInfo soon? (Files - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 4.13) How do I find the folder my application started from? How do I find the application file that's running? (Files - Mac Programming)