Article View: comp.sys.next.programmer
Article #31Matrix behaviour in IB
From: Kjartan Pierre Emilsson
Date: Wed, 28 Oct 1992 14:22
Date: Wed, 28 Oct 1992 14:22
28 lines
1738 bytes
1738 bytes
Hi, Problem: I'm writing a custom Matrix class, which contains multiple cell classes. I am putting this custom Matrix class in a palette. I initialize my Matrix with one row (each column containing different cell classes). So far so good. Now I really would want to be able to alternate-drag new rows in IB. So off I go to try to find what methods IB sends a Matrix when alternate-dragging...mystery. I would have thought that somewhere it would end up using makeCellAt:: or renew, but nope it doesn't. What it does is to actually creating new *empty* rows and columns. This I can understand, as my Matrix class doesn't have a single prototype or cell class to copy, but what I don't understand is: what method does IB use to add empty rows to the matrix ? I have tried under gdb to trap all possible methods which alter the row (and column number) of a Matrix, but none of them seem to be called. The only thing which seems to get called is sizeTo::. Is there some undocumented method that the Matrix IBEditor uses to do this ? -Thanks, Kjartan Please reply by e-mail. -- Kjartan Pierre Emilsson e-mail: kjartan@ecu.unice.fr Non-Linear Institute of Nice tel.: 93 52 98 36 Universite de Nice - Sophia Antipolis fax: 93 52 98 48 Parc Valrose Nice, FRANCE
Technical Details
Message-ID:
<1cm7nhINNnt4@taloa.unice.fr>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!corton!sophia!taloa.unice.fr!taloa.unice.fr!usenetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!corton!sophia!taloa.unice.fr!taloa.unice.fr!usenet From: kjartan@ecu.unice.fr (Kjartan Pierre Emilsson) Newsgroups: comp.sys.next.programmer Subject: Matrix behaviour in IB Message-ID: <1cm7nhINNnt4@taloa.unice.fr> Date: 28 Oct 92 14:22:41 GMT Reply-To: kjartan@ecu.unice.fr Organization: University of Nice Sophia-Antipolis Lines: 28 NNTP-Posting-Host: piastre.unice.fr