home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!destroyer!gatech!psuvax1!psuvm!mkk2
- Organization: Penn State University
- Date: Sun, 30 Aug 1992 15:05:34 EDT
- From: <MKK2@psuvm.psu.edu>
- Message-ID: <92243.150534MKK2@psuvm.psu.edu>
- Newsgroups: comp.sys.next.programmer
- Subject: Matrix and highlighted cells
- Lines: 27
-
- Last week I had this problem, got sort of hysterical about it one night 8-)
- and posted a mostly anguished cry for help.
-
- Today, the rest of the app is coming along nicely, but I still have this
- nagging problem that I haven't been able to solve.
-
- I have a Matrix of Cells in a ScrollView. The Cells are a subclass
- of TextFieldCell, though that might be the problem. Mostly, things work OK.
- The problems are:
-
- 1. When I mousedown on a cell, it highlights, but when I mouseup again,
- it goes back to gray. I want the selected cell to be highlighted.
-
- 2. Double clicks invoke the delegate's doubleAction: OK, but single
- clicks do NOT invoke the delegate's action: method.
-
- I borrwed the general ideas for my code from ScrollDudeScroll, but I
- guess that somewhere in there I've failed to set some behavior flag or
- something. I've tried lots of variants. I've RTFM'd the FM's up oneside
- and the other. [matrix update] doesn't do it. Redefining drawSelf:...
- doesn't seem to do it, though maybe I did that wrong.
-
- Any advice, folks?
-
- Still,
-
- lee Sailer, aka M
-