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