Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!dog.ee.lbl.gov!ux5.lbl.gov!beard From: beard@ux5.lbl.gov (Patrick C Beard) Newsgroups: comp.sys.mac.programmer Subject: Re: Menu Mangler & ThC 4.0 Nightmare Message-ID: <8640@dog.ee.lbl.gov> Date: 16 Dec 90 10:31:34 GMT References: <1990Dec16.034906.25332@cunixf.cc.columbia.edu> Sender: usenet@dog.ee.lbl.gov Reply-To: beard@ux5.lbl.gov (Patrick C Beard) Organization: Berkeley Systems, Inc. Lines: 26 X-Local-Date: Sun, 16 Dec 90 02:31:34 PST In article <1990Dec16.034906.25332@cunixf.cc.columbia.edu> jtt@cunixd.cc.columbia.edu (James T. Tanis) writes: #I've been banging my head up against this problem for a while now-- # #I've got a (popup) menu that gets modified during the course of execution. #At a certain point, I'd liek to reset it to it's original state. #I've tried everything I can think of, but only get errors. It seems that #the menu is gotten from the Resource correctly the first time. #then, when it is time to reset it, I release the resource, and load it #again. #now, the item list is read in correctly, but the defProc is not, thus the #sizes are not calculated correctly. # #HAS ANYBODY BEEN SUCESSFUL AT THIS SORT OF THING? # #Thanks! #-JT # Be sure to zero out the defProc field of the MenuHandle before writing it out. On 68000 Mac's a non-zero defProc will cause a crash. -- ------------------------------------------------------------------------------- - Patrick Beard, Macintosh Programmer (beard@lbl.gov) - - Berkeley Systems, Inc. "..............Good day!" - Paul Harvey - -------------------------------------------------------------------------------