RE: Icons in NSOutlineView
RE: Icons in NSOutlineView
- Subject: RE: Icons in NSOutlineView
- From: Max Horn <email@hidden>
- Date: Fri, 1 Jun 2001 11:30:24 +0200
At 11:35 Uhr -0700 31.05.2001, Jared White wrote:
Hi Eric,
Thanks, that worked great! I had to use [cell setLeaf:YES] get rid of the
right arrow at the end of each item, but other than that your example worked
like a charm.
Everybody is suggesting to use NSBrowserCells. I used to use them,
too. they have one big problem that makes them unusable for me: while
you can hide the leaf icon, the space were they appears is *always*
left free. Hence, when the text of the items is almost as wide as the
full outline/tablewidth (or even wider), then the text is cut early -
the right is left blank. This is very irritating to the users (it
suddenly looks as if the data was cut off - not as if it was cut off
visually at a borde, but as if it was cut in memore, i.e. it just
suddenly stops without any visible reason).
I haven't found a simple solution to "fix" this with NSBrowserCell,
so I had to go with my complete own NSCell subclass :(
If anybody knows a way to fix this more easily, I am more than happy
to admit I was lame ;) But I somehow doubt it...
Max
--
-----------------------------------------------
Max Horn
C++/ObjC/Java Developer
email: <
mailto:email@hidden>
phone: (+49) 6151-494890