home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5676 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.6 KB  |  48 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!umeecs!umn.edu!mmm.serc.3m.com!pwcs!hawkmoon!mspboss!milo!pclark
  3. From: pclark@bosslogic.com (Pete Clark)
  4. Subject: Re: Drag&drop of colors in Views - how does -acceptColor: atPoint: work?
  5. Message-ID: <1992Aug18.063238.3891@bosslogic.com>
  6. Keywords: colors, dragging, views
  7. Sender: pclark@bosslogic.com
  8. Reply-To: pclark@bosslogic.com (Pete Clark)
  9. Organization: Boss Logic
  10. References: <SCOTT.92Aug17092008@nic.gac.edu>
  11. Date: Tue, 18 Aug 1992 06:32:38 GMT
  12. Lines: 34
  13.  
  14. In article <SCOTT.92Aug17092008@nic.gac.edu>  writes:
  15. > So, what's up?  Am I just not doing something right?  There's not
  16. > much area to go wrong, here, and I've checked the spelling against
  17. > the documentation about a billion times.  It just doesn't seem to
  18. > work.  Anyone out there got an example of receiving colors for your
  19. > View?
  20.  
  21. Scott:
  22.  
  23.     This class works as expected under 3.0PR2. The instance of MyView is a  
  24. subview of a Box, which is in a Window. 
  25.  
  26. @implementation MyView
  27. - acceptColor:(NXColor)color atPoint:(NXPoint *)aPoint
  28. {
  29.     printf("ouch!\n");
  30.     return self;
  31. }
  32. @end
  33.  
  34.     Other advice:
  35.     1) Are you sure that your view is an instance of the right object,  
  36. rather than being a CustomView?
  37.     2) Is there a superview of your view that might be catching that  
  38. message?
  39.  
  40.     Best,
  41.         Pete C
  42. -- 
  43. *********************************************************************
  44. Pete Clark -     Software Engineer          | You know that way that  
  45. Integrity Solutions, Inc.                    | you always are?
  46. pclark@is.com    NeXTMail preferred           | Don't be that way.
  47.