Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: Secret coding techniques (was: User item in a SFGetFile dialog - how?) Message-ID: <8723@hoptoad.uucp> Date: 16 Oct 89 23:40:42 GMT References: <2426@tekno.chalmers.se> <8711@hoptoad.uucp> <2466@tekno.chalmers.se> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 34 In article <2466@tekno.chalmers.se> d83_sven_a@tekno.chalmers.se (SVEN AXELSSON) writes: >OK, I've had a few answers similar to this one. What I meant was that I thought >I had to write my own DialogHook procedure - something altogether different >(sorry about the mixup). No mixup. What Inside Mac refers to as the "DlgHook", I was referring to as a filter. I commonly refer to dialog callbacks as item and event filters. Sorry for the confusion. You do need to write your own DlgHook, and it is very easy to do so. >Actually I found out about the -1 item myself >shortly after my first posting in Apples source-code examples (SC018-StdFile). >The next question is then - where is this documented? Not in Inside Macintosh >at least (?) I suppose there are lots and lots of useful but not-too-well- >documented techniques for writing code. Is there a definite source for >finding them (loke a book or something)? The Macintosh Technical Notes. You really can't do serious Mac programming without them. The -1 callback is documented in Tech Note 47, "Customizing Standard File". In my opinion, there is nothing in the technical notes which should not be in Inside Mac, but we all know how seriously the Apple folks take my opinions. A small amount does get folded back into new volumes of Inside Mac when they come out, but most doesn't. Speaking of which -- given the massive expansion of models of the Mac this year, we should be getting a new Inside Mac soon. Any ideas on when it's coming out? If System 7.0 is 1st quarter 1990, then I guess Inside Mac volume 6 will probably be 2nd quarter 1990. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com The fact is self-evident from the text and requires no supporting argument.