home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!psinntp!afs!greg
- From: greg@afs.com (Gregory H. Anderson)
- Subject: Re: emulate alt-drag in IB
- Message-ID: <1992Nov19.162839.417@afs.com>
- Sender: greg@afs.com
- Reply-To: greg@afs.com
- References: <1992Nov17.062956.11676@monu6.cc.monash.edu.au>
- Date: Thu, 19 Nov 1992 16:28:39 GMT
- Lines: 19
-
- In article <1992Nov17.062956.11676@monu6.cc.monash.edu.au>
- ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes:
- > How does IB decide wether the user can alt-drag on an object to
- > create a matrix of the selected object?
- >
- I think the rule is that it has to be a Control that contains a subclass
- of ActionCell (which all current Controls do). In other words,
-
- ([object isKindOf:[Control class]] &&
- [[object cell] isKindOf:[ActionCell class]])
-
- must return YES. Because IB then initializes a Matrix with the Control's
- cell as its protoCell.
-
- --
- Gregory H. Anderson | Thus spake the master programmer:
- Master Programmer / Manager | "Let the programmers be many and
- Anderson Financial Systems | the managers few; then all will be
- greg@afs.com (Nextmail OK) | productive." -- Tao of Programming
-