Re: NSCell Subclass used in NSTableView, what size does the cell have ( must be availaable to the cell )
Re: NSCell Subclass used in NSTableView, what size does the cell have ( must be availaable to the cell )
- Subject: Re: NSCell Subclass used in NSTableView, what size does the cell have ( must be availaable to the cell )
- From: Phil Frost <email@hidden>
- Date: Fri, 16 Dec 2005 09:49:49 -0500
On Fri, Dec 16, 2005 at 03:15:25PM +0100, devmaillists wrote:
>
Dear List,
>
>
I use a subclassed NSTextFieldCell in a NS TableView.
>
>
in setStringValue I think I should limit the the drawing area of the
>
NSTextStorage.
>
To do this I need to know the Size of my cell.
>
The height is not a problem because it is the same for all cells:
>
test.height=[((NSTableView*)[self controlView])rowHeight];
>
But the collumn I am in is the question.
>
Or ist the a single function in the NSCell Class that returns the
>
correct frame.
>
>
Thank you very much?
You can get the width of the cells from -[NSTableColumn width]. You can
get those columns with -[NSTableView tableColumns].
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden