home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / oop / macapp3 / 242 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.0 KB

  1. Path: sparky!uunet!stanford.edu!apple!applelink.apple.com
  2. From: D6431@AppleLink.Apple.COM (OptImage Interactive Svcs,PRT)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Resources and XCMDs in MacApp
  5. Message-ID: <724715937.5133990@AppleLink.Apple.COM>
  6. Date: 18 Dec 92 17:22:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 27
  10.  
  11. Help, I need help with a MacApp Problem:
  12.  
  13. Earlier this year I developed a series of XCMDs for Hypercard that did digital
  14. audio conversions, ie sample rate converters and so forth.  We built a
  15. Hypercard stack as a front end and shipped the product.  Now I'm developing an
  16. application in MacApp that launches these XCMDs as well as a few others.
  17. Moving these XCMDs to MacApp wasn't entirely painless, but I have eventually
  18. gotton all of them to work exept one.  This particular XCMD consists of posing
  19. a Custom SFGetFile dialog, very similar to the one in THINK C 5.0 that lets the
  20. user "Get" multiple files in one "Get".  Keep in mind this XCMD works
  21. beautifully in Hypercard.  From my MacApp application however it launches fine
  22. the first time it is fired off, but if you fire it off again within the same
  23. run of the application it causes a bus error in "MDEF + 014". The Custom
  24. SFGetFile dialog my XCMD poses does have a pop-up menu in it the allows the
  25. user to filter the type of files they are looking at.  The DITL for the
  26. SFGetFile has a control for the Pop-up.  I have used both a Public domain
  27. Pop-up CDEF and Apple's System 7 Pop-up CDEF and got the same problem.  On
  28. entry to the XCMD the cntl resource associates an empty menu resources of ID
  29. 128 with the CDEF.  On exit, I call release resource on the MenuHandle, because
  30. the next time the XCMD is launched I might put different Items into the Pop-up
  31. menu.  Again this works fine in hypercard.  What is MacApp doing to what seems
  32. to be my resources during execution of my app that hypercard wasn't doing???
  33. I've tried many senarios of the above trying to isolate the problem, but have
  34. had no luck.  Any help would be most appreciated.
  35.  
  36. Jay Bartot @Optimage interactive services
  37.  
  38.