home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13905 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!usc!rpi!uwm.edu!ogicse!reed!bowman
  2. From: bowman@reed.edu (Eric Bowman (bobo))
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: IYourObject, Views, & ViewEdit
  5. Message-ID: <1992Aug12.231336.1049@reed.edu>
  6. Date: 12 Aug 92 23:13:36 GMT
  7. Article-I.D.: reed.1992Aug12.231336.1049
  8. Organization: Reed College, Portland, OR
  9. Lines: 29
  10.  
  11. MacApp 3.0.1 question:
  12.  
  13. I've created a window in ViewEdit with several views, including a couple of
  14. subclasses of TTextListView.  When I close then window, MacApp drops into
  15. Macsbug to tell me that I've handed FreeIfObject an invalid object.  I
  16. thought the problem might be that IMyTextListView wasn't getting called.
  17. This belief proved to be correct (though I have no idea if it's related to
  18. the crashing...), which causes me some confusion.  So I played with the
  19. skeleton app, and discovered that IViewSkeleton never gets called, either.
  20. So what's up here?  411 says about TTextListView.ITextListView,
  21.  
  22. Call?
  23.     ALWAYS, if you are instantiating a TTextListView 
  24.     object or creating a subclass of TTextListView. 
  25.     If you are creating a subclass of TTextListView, 
  26.     your I<Subclass> method of that subclass must call
  27.     ITextListView.
  28.  
  29. So what's up here?  None of the sample MacApp code calls the respective
  30. IYourObject; in fact, most of the sample code never defines such a best
  31. for their subclassed views.
  32.  
  33. On an unrelated note, my code and sample code no longer handles "<<<>>>"
  34. correctly for window titles -> "Untitled 1", etc.  This worked fine under
  35. ETO 7, but doesn't work with ETO 8.
  36.  
  37. Thanks,
  38. bobo
  39. bowman@reed.edu
  40.