Article View: comp.sys.next.programmer
Article #940Re: Resizing menus
From: Ray Spalding
Date: Thu, 10 Sep 1992 21:51
Date: Thu, 10 Sep 1992 21:51
18 lines
1062 bytes
1062 bytes
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)
Technical Details
Message-ID:
<67975@hydra.gatech.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!prism!xray.gatech.edu!cc100aaReferences:
<fztn6md.abell@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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