Re: Shiny little square buttons
Re: Shiny little square buttons
- Subject: Re: Shiny little square buttons
- From: Uli Kusterer <email@hidden>
- Date: Mon, 3 Jul 2006 11:23:25 +0200
Am 02.07.2006 um 16:13 schrieb Nik Youdale:
Ok.. well it looks like a custom view is the best option then. One
question though, is it possible to "cover" a view with a
translucent black rectangle to the give the "pressed" look of a
button? If I could do this I would be pretty much set. I tried
using NSRectFill() in the drawRect method, using a translucent
color, but that didn't work.
NSRectFill & Co. are for *replacing* a color in a rect (e.g. to
reset the alpha channel of an NSImage). Why does everybody insist on
using the functions when we have a perfectly good fillRect method in
NSBezierPath?
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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