home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7345 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.1 KB  |  31 lines

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