Re: Disclosure Triangle Icon
Re: Disclosure Triangle Icon
- Subject: Re: Disclosure Triangle Icon
- From: "M. Uli Kusterer" <email@hidden>
- Date: Thu, 19 Feb 2004 23:40:46 +0100
At 23:27 Uhr +0100 19.02.2004, Bjvrn Carlstrvm wrote:
I have my own custom view where it would be suitable to let the user
expand or hide some information. I believe a Disclosure Triangle
would be the ideal user interface. Is there a way to draw this
standard icon? Or should I use an NSButton? (There might be hundreds
of these in my view, so i fear the overhead.)
Any ideas?
AFAIK there is no standard disclosure triangle in Cocoa.
But if you want to use an NSButton and just give it an icon that
looks like a disclosure triangle, use an NSButtonCell to do it. That
way you get all the highlighting, tracking and drawing of an NSButton
without the overhead of an NSView.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.