home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!prism!xray.gatech.edu!cc100aa
- From: cc100aa@xray.gatech.edu (Ray Spalding)
- Newsgroups: comp.sys.next.programmer
- Subject: Re: Resizing menus
- Keywords: menu menucell
- Message-ID: <67975@hydra.gatech.EDU>
- Date: 10 Sep 92 21:51:00 GMT
- References: <fztn6md.abell@netcom.com>
- Sender: news@prism.gatech.EDU
- Distribution: na
- Organization: Georgia Institute of Technology
- Lines: 18
-
- In article <fztn6md.abell@netcom.com> abell@netcom.com (Steven T. Abell) writes:
- >Menu has a sizeToFit method that will do what I want (apparently), but I
- >haven't found a reasonable way to invoke it, given only a pointer to a
- >MenuCell in an arbitrary submenu.
-
- Note that Menu inherits from Window, not View.
-
- Just do:
- [[[menuCell controlView] window] sizeToFit];
-
- or:
- [[sender window] sizeToFit];
-
- if "sender" is the Menu's matrix, as is normally the case.
- --
- Ray Spalding, Office of Information Technology
- Georgia Institute of Technology, Atlanta Georgia, 30332-0715
- Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
-