Re: Fake NSMenu-like view
Re: Fake NSMenu-like view
- Subject: Re: Fake NSMenu-like view
- From: Daniel Jalkut <email@hidden>
- Date: Mon, 30 Jan 2006 13:02:24 -0500
Thanks, Brian. You get exactly why I can't just use a standard NSMenu.
What you describe below is what I'm already doing, though. That's
"the easy part" :)
The question is how to best implement the part of that custom window
such that it looks and acts like a menu. Sorry if I wasn't clear
about this in my original post.
If people will just take it at face value that I want a *view* that
looks like an NSMenu, I think my entire question is well contained in
that desire :)
Daniel
On Jan 30, 2006, at 12:05 PM, Brian Ganninger wrote:
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.
_______________________________________________
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