On Mon, Jan 12, 2009 at 2:39 PM, Donnie Lee <lpr...@gmail.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com