Re: Mail-like glossy buttons
Re: Mail-like glossy buttons
- Subject: Re: Mail-like glossy buttons
- From: David Aames <email@hidden>
- Date: Sun, 3 Sep 2006 20:07:57 +0100
Firstly, thanks for the tip! This is what I was looking for.
Secondly, let me explain how to achieve the look of Mail's buttons.
First button: It is just a normal button with the bezel style set to
"Small Square Button". Set the icon position to centered and set the
Icon field to the name of the image.
Second button: Set the icon like it is described above. Now for
displaying the menu you have to use the button's action method where
you should put something like:
[NSMenu popUpContextMenu:myMenu withEvent:[NSApp currentEvent]
forView:myButton];
Regards,
David
On 3 Sep 2006, at 18:23, Spencer Salazar wrote:
Seems to me that the "Small Square" button style in Interface
Builder resembles Mail's glossy buttons somewhat. With NSButton's
setBezelStyle, you can use NSSmallSquareBezelStyle. This button
style is Tiger only, however.
spencer
On Sep 3, 2006, at 1:10 PM, PGM wrote:
David,
As there is no "glossy-button" available through NSButton, I guess
the simplest way to implement these is to make an image of a
glossy button in Photoshop or some other pixel-pusher, and then
use this image with a normal NSButton. This is for example how the
buttons in Safari are produced. It shouldn't be hard to google
for some Photoshop tutorials on creating glossy effects. Actually
now I have a closer look at it, the glossy effect of the buttons
you mention may be just two shades of grey that are drawn across
the view.
Good luck, Patrick
On 3-Sep-06, at 12:43 PM, David Aames wrote:
Hello list,
I'm looking for some guidelines on how to implement these kind of
buttons (the ones in the bottom left hand corner). I've looked
through the archives and this question was asked before although
I couldn't find any definite emails on the implementation
details. Any suggestions on how to go about the problem are
greatly appreciated. Thanks very much for your help & time.
Regards,
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sympatico.ca
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:
40gmail.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