Re: Icon and Text in NSTableView
Re: Icon and Text in NSTableView
- Subject: Re: Icon and Text in NSTableView
- From: "Douglas A. Welton" <email@hidden>
- Date: Mon, 05 Apr 2004 12:48:43 -0400
Martin,
Check the example code that came with the developer tools. The
DragNDropOutlineView sample includes a ImageAndTextCell, That cell will do
what you are looking for. If not, check out the archives at
cocoa.mamasam.com for plenty of other solutions.
later,
douglas
on 4/5/04 12:08 PM, Martin Redington at email@hidden wrote:
>
I have an NSTableView that displays a list of mounted volumes
>
>
(it took me a while to work out how to get access to the list of
>
mounted volumes reliably, but I think that bit is sorted now).
>
>
Currently I have a separate column for the volume icon, and for the
>
volume name.
>
>
However, I would like to display the icon and text in a single column,
>
with the text either underneath the icon, or to the right (I would
>
ideally like to be able to configure this). The latter would appear
>
something like the mounted volumes panel in the 10.3 Finder windows.
>
>
It looks like I can do this with a custom NSView, or even some variety
>
of NSButtonCell, but any pointers would be good.
>
>
cheers,
>
Martin
_______________________________________________
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.