home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5293 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.5 KB  |  60 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!psinntp!relief!jjfeiler
  3. From: jjfeiler@relief.com (John Jay Feiler)
  4. Subject: Re: Problems with ColorWells in a ScrollView
  5. Message-ID: <1992Jul28.075720.3952@relief.com>
  6. Sender: jjfeiler@relief.com
  7. Reply-To: jjfeiler@relief.com
  8. Organization: relief consulting
  9. References: <1683@nextpoint.UUCP>
  10. Date: Tue, 28 Jul 1992 07:57:20 GMT
  11. Lines: 47
  12.  
  13. In article <1683@nextpoint.UUCP> hans@dev01 (Hans Peter Geiser) writes:
  14. > Hello !
  15. > I have a little problem (or bug) which everyone can reproduce in a few  
  16. seconds.
  17. > Just start the IB , drag some ColorWells one beyond the other and group  
  18. them in  
  19. > a ScrollView. If you try this in the Test-Mode (or in the compiled version)  
  20. > you'll see that the ColorWells aren't displayed correctly. If you move the  
  21. > scrollbars fast enough all is okay, but if you get slower you'll miss some  
  22. > ColorWells. But they still there as you can see by clicking on the place  
  23. where  
  24. > they should be.
  25. > Does anybody knows what happens or better how to solve this problem? 
  26. > Thanks for answers    Hans-Peter Geiser
  27.  
  28. I encountered this the other day and sent a bug report off to NeXT.  Here's  
  29. my workaround....
  30.  
  31. ---------------MyNXColorWell.h
  32. #import <appkit/appkit.h>
  33.  
  34. @interface MyNXColorWell:NXColorWell
  35. {
  36. }
  37.  
  38. - drawSelf:(const NXRect *)rects :(int)nrect;
  39.  
  40. @end
  41. -----------------MyNXColorWell.m
  42. #import "MyNXColorWell.h"
  43.  
  44. @implementation MyNXColorWell
  45.  
  46. - drawSelf:(const NXRect *)rects :(int)nrect
  47. {
  48.     [super drawSelf:&bounds :1];
  49.     return self;
  50. }
  51.  
  52.  
  53. @end
  54. ----------------
  55.  
  56.  
  57.     John
  58.