Re: Disabled button looks like enabled
Re: Disabled button looks like enabled
- Subject: Re: Disabled button looks like enabled
- From: "I. Savant" <email@hidden>
- Date: Mon, 12 Jan 2009 15:01:11 -0500
On Mon, Jan 12, 2009 at 2:39 PM, Donnie Lee <email@hidden> wrote:
> I planned to use it to emulate
> gradient bottom bar (under Source List control), looks like in
> Mail.app.
Is THAT all?! :-D
In an attempt to avoid using your own (or third-party) code that
very specifically and efficiently addresses the problem (because of
some strange phobia), you're making things so much more difficult than
is even remotely necessary or sane!
If you're worried about consuming resources, consider the resources
involved in using a full-blown control versus a simple, pointed custom
view that draws a gradient. Seriously, your worries are akin to
holding your breath because you're afraid of inhaling "something bad"
that may or may not be there.
BREATHE!!!
Then create a custom NSView that draws a gradient using the
*INCREDIBLY EFFICIENT* system calls. Perhaps NSGradient if you're
requiring 10.5 or above? Maybe CTGradient (the slimmed down version
someone posted somewhere googlable if you're cruft-phobic)?
This is infinitely better than
super-premature-as-in-before-the-creation-of-the-universe
optimization.
> Really, I don't like all these additional libraries that try to
> emulate gradient bottom bar, because they redraw these controls by
> itself, and I would like to use only Apple controls.
Get over it.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden