home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5663 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!news.cs.indiana.edu!umn.edu!msus1.msus.edu!gacvx2.gac.edu!gacvax2!scott
  2. From: scott@nic.gac.edu (Scott Hess)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Drag&drop of colors in Views - how does -acceptColor:atPoint: work?
  5. Message-ID: <SCOTT.92Aug17092008@nic.gac.edu>
  6. Date: 17 Aug 92 14:20:08 GMT
  7. Organization: Gustavus Adolphus College
  8. Lines: 30
  9.  
  10. [Sorry if this article is a repeat - but it never seemed to show
  11. up on our newsfeed, and nobody's replied anyhow.  Perhaps we've
  12. got NNTP problems?  I don't know.]
  13.  
  14. From View.rtf:
  15.  
  16.     acceptColor:atPoint:
  17.     - acceptColor:(NXColor)color atPoint:(NXPoint *)aPoint
  18.     
  19.     Allows a View to accept a color.  If your subclass of View
  20.     implements this method, it will be invoked when the user
  21.     drags a color (as from an NXColorWell) into your View.
  22.  
  23. So, I implement -acceptColor:atPoint:.  All it does yet is
  24. printf( "Here I am!\n").  But, when I pop up a color panel, and
  25. drag a color into the View, nothing happens.  No printf, and later,
  26. when I add code to do something else, like change the View's color,
  27. that doesn't happen, either.
  28.  
  29. So, what's up?  Am I just not doing something right?  There's not
  30. much area to go wrong, here, and I've checked the spelling against
  31. the documentation about a billion times.  It just doesn't seem to
  32. work.  Anyone out there got an example of receiving colors for your
  33. View?
  34.  
  35. Later,
  36. --
  37. scott hess <shess@ssesco.com>  <Who achieved programmer nirvana on Aug 11th>
  38. 12901 Upton Avenue South, #326  Burnsville, MN 55337 (612) 895-1208 Anytime!
  39.    <Text: One Class to bring them all and in the darkness bind them ...>
  40.