Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!agate!ucbvax!ucdavis!deneb.ucdavis.edu!u545731798ea From: u545731798ea@deneb.ucdavis.edu (L. Greg DeMichillie) Newsgroups: comp.sys.mac.hypercard Subject: openCard msg before newCard? Message-ID: <2902@ucdavis.ucdavis.edu> Date: 24 Aug 88 03:44:40 GMT Sender: uucp@ucdavis.ucdavis.edu Reply-To: u545731798ea@deneb.ucdavis.edu (L. Greg DeMichillie) Organization: None yet, any offers? Lines: 25 This may have been covered before but here goes... In HyperCard 1.2, why is a openCard message generated *BEFORE* a newCard message when the user selects "New Card" from the menu? I have isolated this by making a stack with only 2 handlers, both at the stack level: on openCard answer "openCard message handled" end openCard on newCard answer "newCard message handled" end newCard When I select "New Card" the openCard dialog is displayed, THEN the newCard. This is a real problem. I have a stack that needs to initialize certain hidden fields when the card is opened. If the openCard handler runs first it finds these fields empty and croaks. I know I could have the openCard handler check for an empty field, but that is kind of a kludge. ----- L. Greg DeMichillie "I'm not bad, I'm just drawn that way" u545731798ea@deneb.ucdavis.edu - Jessica Rabbit lgdemichillie@deneb.ucdavis.edu AppleLink: ST0178