• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Displaying a menu at arbitrary location.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying a menu at arbitrary location.


  • Subject: Re: Displaying a menu at arbitrary location.
  • From: email@hidden
  • Date: Mon, 13 May 2002 11:00:53 -0700

Gideon King wrote:
|I am implementing a pop-up icon button as described in the HI guidelines
|document. In order to do this, I need to be able to display a menu just
|below the button that is clicked, aligned with the left side of the
|button. As NSMenu doesn't have any relationship with NSView, I'm not
|sure how to display the menu where I want it.
|
|NSPopupButton doesn't help as the menus don't display in the right place
|and also won't display large images. Context menus don't seem to help as
|there seems no way to control where they display.

It sounds as if you want a pull-down menu, as described in /Developer/Documentation/Cocoa/TasksAndConcepts/ProgrammingTopics/MenuList/Concepts/HowPullDownListsWork.html. To make the menu a pull-down menu, you can set the "pulldown" flag in Interface Builder, or call setPullsDown: in Cocoa.

I'm not sure what you mean by it "won't display large images", since menu items can have icons attached.

Glen Fisher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Displaying a menu at arbitrary location. (From: Gideon King <email@hidden>)

  • Prev by Date: Need a MessageQueue, is there one in Cocoa (or CF) already?
  • Next by Date: Re: How to make system wide changes to Cocoa
  • Previous by thread: Re: Displaying a menu at arbitrary location.
  • Next by thread: Re: Relative pathnames e.g. when initializing NSImages?
  • Index(es):
    • Date
    • Thread