Re: Complex NSCells in an NSTableView
Re: Complex NSCells in an NSTableView
- Subject: Re: Complex NSCells in an NSTableView
- From: "Clark S. Cox III" <email@hidden>
- Date: Thu, 10 Jul 2003 14:11:31 -0400
On Thursday, July 10, 2003, at 13:29, The Amazing Llama wrote:
This question has been asked before, but the archives provide no
answers to any of the times it has been asked.
I'm dealing with a time interval that has to be user editable. All
that they need to edit is the number of years and months in the
interval.
I'm presenting these intervals in an NSTableView. I'd love to have one
column of the table be the interval, and in that column have two
textviews with accompanying spinner controls. But this doesn't look
possible at present, since these NSControls don't easily fit into
NSCells.
There is one thread in the archive about how to put an NSProgressBar
into an NSCell, which advocated making an external view and copying
the image into the NSCell. The question is asked how to do this
copying, but there is no answer. How would one go about doing this? I
doubt it would work for my situation, as I need the interactivity that
the controls provide, not just a facsimile.
Any help would be greatly appreciated.
Well, if I were going to try this, my first attempt would be to make
some sort of |ber-cell that had two instances of NSTextFieldCell and
two instances of NSStepperCell. I would then use that |ber cell as the
data cell for my column, and have it coordinate the display of it's
"sub-"cells. Your cell class' drawing method would simply call the four
drawing methods of the "sub-"cells, and the mouse tracking method would
decide which "sub-"cell should be tracked, etc.
--
http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
_______________________________________________
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.