Re: Fake NSMenu-like view
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