Re: What's the best way to get a Shortcut List to look like it does in Mail.app?
Re: What's the best way to get a Shortcut List to look like it does in Mail.app?
- Subject: Re: What's the best way to get a Shortcut List to look like it does in Mail.app?
- From: Guy English <email@hidden>
- Date: Mon, 7 Feb 2005 17:09:09 -0500
On Mon, 7 Feb 2005 21:57:43 +0000, João Pavão <email@hidden> wrote:
> So, does anyone know of any trick that makes it possible to use a plain
> NSPopUpButton to achieve this, instead of having to go into subclass
They probably just subclass the cell and replace it in the
NSPopUpButton at run time. If you notice in xcode they have an action
menu and it's just implemented with a little icon in a standard popup
button. You could always use an attributed string as the button title
to stick the gear icon in there. Well, I haven't actually tried that,
but it should work. When I get a minute I'll go look at my subclass
and see if it's worth releasing the code to. I'm pretty sure I just
hacked the buttons drawRect method when I should've made a cell so I'm
afraid it wouldn't be a very good example for people.
I'm really sure you can find code out there though - the UI element is
called an Action Button.
Guy
_______________________________________________
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