Re: Fake NSMenu-like view
Re: Fake NSMenu-like view
- Subject: Re: Fake NSMenu-like view
- From: Guy English <email@hidden>
- Date: Tue, 31 Jan 2006 01:45:19 -0500
Hi Daniel,
Ok, you got me intrigued so I hacked something together. I don't
think the NSMatrix approach is the right one. I think you'll end up
beating on it longer than it'll take to code something new. And
eventually some limitation will bite you.
Here's a screenshot of what I got working: http://www.kickingbear.com/
Source/Spotlightesque.png
And you can get the code here: http://www.kickingbear.com/Source/
Spotlightesque.zip
It's a bit of a rush job and I wouldn't want anyone taking it as the
pinnacle of design but it works, it's easy to use, and it looks and
feels a lot like the Spotlight menu. It's got one data source method,
one delegate method and/or a target/action setup. It needs some final
tweaks to make it prettier and more configurable but it's a good start.
Hope that helps,
Guy
On 29-Jan-06, at 3:59 PM, Daniel Jalkut 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.
Does anybody have any advice? It doesn't have to be so much like a
real menu. That is, it won't need things like hierarchical displays
or keyboard shortcut symbols, etc. But it needs to present text in
the menu font against the faintly-striped background (fortunately I
think that's the standard window background).
I'm leaning towards using an NSMatrix with a cell that simply knows
how to select itself "menu style". Has anybody already done this?
Is there sample/free code out there that I'm overlooking?
Thanks!
Daniel
_______________________________________________
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
_______________________________________________
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