Whence comes the "Disclosure Triangle" in Cocoa?
Whence comes the "Disclosure Triangle" in Cocoa?
- Subject: Whence comes the "Disclosure Triangle" in Cocoa?
- From: "l.m.orchard" <email@hidden>
- Date: Thu, 26 Jul 2001 01:51:38 -0400
Okay, I'm still working on making a toggleable expanding/shrinking window.
I've seen it done with the Save panel (using a blue Aqua-y button), with
the Classic startup (using a black twisty arrow in the lower left corner),
and now I've noticed it in the Software Updater (also using a black twisty
arrow in the LL corner).
I just browsed through the Aqua HI Guidelines and find that it's called a
"disclosure triangle". And the example of the save dialog is mentioned.
And it mentions that "Disclosure triangles are available to Carbon
developers through the Control Manager (CreateDisclosureTriangle) or the
Appearance Manager (DrawThemeButton)." But I see no mention of it in
Cocoa. Should it actually not be used in Cocoa apps?
So far I'm thinking I have to roll my own. I already rolled my own window
expand-and-reveal/hide-and-contract method, so I now need to roll my own
rotating arrow? Though I'm a newbee, this feels like wheel-reinvention.
Though I haven't found it, seems like this needs to be a special subclass
of NSWindow or something, since it seems to be a common UI element
alongside Drawers and Sheets. It should have some Interface Builder
support.
Any advice?
--
Leslie Michael Orchard <email@hidden>
ICQ: 492905 (home) 11082089 (work)
"...see you space cowboy..."