home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / next / programm / 8319 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.5 KB

  1. Path: sparky!uunet!sequent!gaia.ucs.orst.edu!flop.ENGR.ORST.EDU!rutgers!uwvax!barney.cs.wisc.edu!finton
  2. From: finton@barney.cs.wisc.edu (David J. Finton)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: How do I tell a text Form to select the next text cell?
  5. Message-ID: <1993Jan26.160008.16406@cs.wisc.edu>
  6. Date: 26 Jan 93 16:00:08 GMT
  7. References: <1993Jan20.210945.23982@cs.wisc.edu> <C1BEJI.A3M@iat.holonet.net>
  8. Sender: news@cs.wisc.edu (The News)
  9. Distribution: usa
  10. Organization: University of Wisconsin, Madison -- Computer Sciences Dept.
  11. Lines: 26
  12.  
  13.  
  14. In article <C1BEJI.A3M@iat.holonet.net> cmumford@iat.holonet.net 
  15. (Chris Mumford) writes:
  16. >Can you link the fields so that when the user hits the tab key they
  17. >automatically get selected?
  18.  
  19. That's what I've done.  But when the user hits return, I have a method
  20. process the text, and I want it to then select the next field, just
  21. as if the user had pressed the tab key.
  22.  
  23. I got suggestions that I should use something like
  24.            [[sender nextText] selectText:self]
  25.  
  26. This doesn't work;  I get a warning that says the compiler can't 
  27. find the method and that "return type for 'nextText' defaults to id."
  28. or "structure has no member named nextText" if I try to access that
  29. variable directly by sender->nextText.
  30.  
  31. Essentially, I need to access a variable internal to the object.  That's
  32. not allowed, but I would expect there to be a method to select the
  33. field pointed to by that variable so I don't have to access it.
  34.  
  35. Help?
  36.  
  37. David Finton
  38. finton@cs.wisc.edu
  39.