• 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: Fake NSMenu-like view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fake NSMenu-like view


  • Subject: Re: Fake NSMenu-like view
  • From: Brian Ganninger <email@hidden>
  • Date: Mon, 30 Jan 2006 11:05:44 -0600

The answer lies in the query - the poster is asking how to mimic the Spotlight UI, not create menus in the menubar.

As to how, I believe one approach would be to use NSStatusMenuItem (or NSMenuExtra if you feel the need to use private APIs, being sure it can break and should at the bare minimum get an enhancement request) and get the click's location and/or the location of the menubar and then position a borderless, non-draggable window that you draw as you see fit (within a relative distance to the event/item itself) to create a 'seamless' look and feel.

On Jan 30, 2006, at 10:55 AM, Joshua Scott Emmons wrote:

I want to develop a "fake menu" view such that I can present UI somewhat like the "menu" that appears below a Spotlight query when invoked from the menu bar.

Why a fake menu? It'd be a lot easier to use the real thing. Start reading here:


Introduction to Application Menus and Pop-up Lists (http:// tinyurl.com/a8axv)


Cheers, -Joshua Emmons


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Fake NSMenu-like view
      • From: Daniel Jalkut <email@hidden>
References: 
 >Fake NSMenu-like view (From: Daniel Jalkut <email@hidden>)
 >Re: Fake NSMenu-like view (From: Joshua Scott Emmons <email@hidden>)

  • Prev by Date: How to deal with Java Script in None-GUI applications?
  • Next by Date: Re: How to deal with Java Script in None-GUI applications?
  • Previous by thread: Re: Fake NSMenu-like view
  • Next by thread: Re: Fake NSMenu-like view
  • Index(es):
    • Date
    • Thread