Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!apple!jkc From: jkc@Apple.COM (John Kevin Calhoun) Newsgroups: comp.sys.mac.hypercard Subject: Re: problem with openStack handler Message-ID: <47352@apple.Apple.COM> Date: 13 Dec 90 19:21:56 GMT References: <2450@ac.dal.ca> Organization: Apple Computer Inc., Cupertino, CA Lines: 24 In article <2450@ac.dal.ca> ireland@ac.dal.ca writes: >I just discovered that when I launch a stack from the finder its openstack >handler is called twice, but only one when I open the stack from within >HC. Is this the way its supposed to work or is something screwy? This is not the way it works by itself. When you start HyperCard 2.0, either by opening a stack or the application itself, it sends each of the following messages exactly once: startUp openStack openBackground openCard If the stack you're opening contains a startUp handler that goes to another stack and back, then your openCard handler will be invoked twice. You can eliminate the extra invocation by setting lockMessages to true in your startUp handler -- be sure to set lockMessages back to false as soon as possible. Kevin Calhoun HyperCard Team Apple Computer, Inc.