Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!ukma!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: Bug in resource handling in LSP 2.0 Message-ID: <919@husc6.harvard.edu> Date: 5 Jan 89 15:12:19 GMT References: <1112@ccnysci.UUCP> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec/THINK Technologies, Bedford, MA Lines: 36 In article <1112@ccnysci.UUCP> alexis@ccnysci.UUCP (Alexis Rosen) writes: >The problem: When you want to create your own dialog templates for the >SFGetFile and SFPutFile routines, you can't. It always uses the DLOG >-4000 (and the other std. file resources) that it finds in the system *FLAME ON* Why do you feel honor-bound to blame the environment for your own stupid mistakes? In Inside Macintosh, Volume 1, Chapter 20 (The Standard File Package), it explains the following: - if you want to use a custome dialog box with SFGetFile or SFPutFile, place it in your resource file with the SAME resource ID as the standard dialogs, and pass in a custom dialog hook. - if you want to use a custom dialog box that has a DIFFERENT resource id than the standard boxes, you need to use SFPGetFile and SFPPutFile (note the extra "P" after SF). RTFM before you start pointing fingers. *FLAME OFF* --Rich Rich Siegel Staff Software Developer THINK Technologies Division, Symantec Corp. Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel Phone: (617) 275-4800 x305 Any opinions stated in this article do not necessarily reflect the views or policies of Symantec Corporation or its employees.