Path: utzoo!attcan!uunet!cs.utexas.edu!usc!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: some IIGS toolbox programming questions Message-ID: <36767@apple.Apple.COM> Date: 25 Nov 89 01:50:55 GMT References: <14217@boulder.Colorado.EDU> Organization: Apple Computer Inc, Cupertino, CA Lines: 43 In article <14217@boulder.Colorado.EDU> hartkopf@tramp.Colorado.EDU (Jeff Hartkopf) writes: >1) Is there a toolbox call to access the standard file type names that > the Finder uses? Or do I need to include all the text for the file > type names in my program? No, and No. There's no toolbox support for it, but the data is stored in the File Type Descriptor Files in the *:Icons directory. The format is documented in Apple II File Type Note $42: File Type Descriptor Files. >2) How do you set the minimum size of a window? I'm working on a desk > accessory that uses a resizeable window (using TaskMasterDA()), and, > using the size box, I can shrink it down to less than 1 inch by 1 inch, > which causes problems. I don't know, but I've seen this happen with my Show Clipboard NDA, too. I have a bad feeling that the Desk Manager calls GrowWindow with inappropriately-small MinHeight and MinWidth parameters when it gets a mouse-down in your NDA's grow box. >3) [getting a "the pathname is too long" error dialog from Standard > file when using the Finder] It sounds like the Finder has set prefix 0 to the null string and set prefix 8 to a string longer than 64 characters, and then you're using an old-style Standard File call that is limited to 64-character pathnames. A solution is to have your NDA use the new Standard File calls, like SFGetFile2. >4) In GS/OS, what is the backup bit of the access field of a file (folder?) > for? I don't think it has a well-defined use; the best approach is probably to ignore it, and just use the backup bits on nondirectory files. -- --Dave Lyons, Apple Computer, Inc. | DAL Systems Apple II Developer Technical Support | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.