home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6101 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.0 KB

  1. Path: sparky!uunet!gatech!prism!xray.gatech.edu!cc100aa
  2. From: cc100aa@xray.gatech.edu (Ray Spalding)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: Resizing menus
  5. Keywords: menu menucell
  6. Message-ID: <67975@hydra.gatech.EDU>
  7. Date: 10 Sep 92 21:51:00 GMT
  8. References: <fztn6md.abell@netcom.com>
  9. Sender: news@prism.gatech.EDU
  10. Distribution: na
  11. Organization: Georgia Institute of Technology
  12. Lines: 18
  13.  
  14. In article <fztn6md.abell@netcom.com> abell@netcom.com (Steven T. Abell) writes:
  15. >Menu has a sizeToFit method that will do what I want (apparently), but I
  16. >haven't found a reasonable way to invoke it, given only a pointer to a
  17. >MenuCell in an arbitrary submenu.
  18.  
  19. Note that Menu inherits from Window, not View.
  20.  
  21. Just do:
  22.     [[[menuCell controlView] window] sizeToFit];
  23.  
  24. or:
  25.     [[sender window] sizeToFit];
  26.  
  27. if "sender" is the Menu's matrix, as is normally the case.
  28. -- 
  29. Ray Spalding, Office of Information Technology
  30. Georgia Institute of Technology, Atlanta Georgia, 30332-0715
  31. Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
  32.