Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!dogie.macc.wisc.edu!decwrl!nsc!taux01!cyosta From: cyosta@taux01.UUCP ( Yossie Silverman) Newsgroups: comp.sys.mac.programmer Subject: GetResource in a WDEF - does it work? Message-ID: <2793@taux01.UUCP> Date: 1 Nov 89 10:04:19 GMT Reply-To: cyosta@taux01.nsc.com ( Yossie Silverman ) Organization: National Semiconductor (IC) Ltd, Israel Lines: 17 I am writing a WDEF which needs to do some GetResource calles. It seems that these are all returning NIL but not setting ResError to anything usefull. I was doing a GetMenu in the WDEF and it wouldn't, so I moved it out and did a GetMHandle instead. This worked fine, but not the MDEF, it is trying to do a GetResource and failing! I would rather do the GetMenu in the WDEF as well! Is there something about the Window Manager that I am not taking notice of? I stopped in the WDEF with TMON and looked at ResLoad. It was set to TRUE (normal). I tried getting TMON to do the load and it worked. Even with the resource loaded, GetResource was still returning NIL! What am I doing wrong? Thanks in advance - Yossie P.s. does someone have a concise list of what and what can't be done in a WDEF, in a MDEF (how about a CDEF? :-) -- Yossie Silverman What did the Caspian sea? National Semiconductor Ltd. (Israel) cyosta%taux01@nsc.nsc.COM or RPR1YOS@TECHNION.BITNET NSA LSD FBI KGB PCP CIA MOSAD NUCLEAR MI5 SPY ASSASSINATE SDI -- OOLCAY ITAY