Re: NSCell and IB
Re: NSCell and IB
- Subject: Re: NSCell and IB
- From: Scott Herz <email@hidden>
- Date: Mon, 17 Sep 2001 15:33:54 -0700
I'm not quite visualizing this, but you will need to make a single cell
that draws all of this. You can only make a matrix/tableview out of
cells. NSText and NSImage are views. I would suggest that you subclass
NSCell to draw as you like and then use IB to design your NSTableView
columns (title, with, etc). Then programmatically set the your subclass
to be the data cell of your column.
Scott.
On Monday, September 17, 2001, at 03:14 PM, Robert Goldsmith wrote:
Hi :)
Ok, maybe I'm missing something here but I can't find any way to do the
following:
I want a single scrollable column of objects where each object consists
of 2 NSText and 1 NSImage object, all with a coloured background -
possibly more but this is the minimum. The object should be selectable
but the contents of the object need not be. Each object would show a
title, an author and a status icon (for instance).
I figured the best way would be either an NSScrollView with an NSMatrix
of NSCells in it or a single column NSTableView with a custom NSCell
set for the NSTableColumn.
However, I can't work out how to create an NSCell like I need in IB or
connect it up in IB. Do I have to do it all programmatically or can IB
do it (or lots of it) and how do I go about this?
Thanks
Robert
-- Please note the new email address:
email@hidden
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
References: | |
| >NSCell and IB (From: Robert Goldsmith <email@hidden>) |