home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5181 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.3 KB

  1. Path: sparky!uunet!ogicse!cs.uoregon.edu!nntp.uoregon.edu!news.u.washington.edu!news
  2. From: wjs@blorf.cpac.washington.edu (William Shipley)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: DBKit: TextFields as display objects
  5. Message-ID: <1992Jul22.212541.2259@u.washington.edu>
  6. Date: 22 Jul 92 21:25:41 GMT
  7. Article-I.D.: u.1992Jul22.212541.2259
  8. References: <1992Jul22.162400.4596@midway.uchicago.edu>
  9. Sender: news@u.washington.edu (USENET News System)
  10. Organization: University of Washington
  11. Lines: 19
  12.  
  13. & Garrett writes:
  14. >  Art Isbell mailed me the following.  It works.  EOD.
  15. >  If you drag a connection from each attribute to both
  16. >  the DBTableView column and the TextField in which
  17. >  you wish to display and enter data (the DBTableView
  18. >  column connection is optional), and also make the
  19. >  DBModule the TextField's textDelegate, you should
  20. >  get the behavior you seek.
  21.  
  22. Note also that if you have a UI control that doesn't have a textDelegate (like  
  23. a DBImageView, or a switch with a custom connection) you should make the module  
  24. that control's target, sending the "takeValueFrom:" method.
  25.  
  26. Note also that Text objects are 'magic' in that you don't have to set either  
  27. their delegate or their target to get them to propogate changes.  This is  
  28. because Text objects have neither targets nor delegates.
  29.  
  30. -William Shipley
  31. The Omni Group
  32.