Re: Attempting to create NSTableView with Single Header
Re: Attempting to create NSTableView with Single Header
- Subject: Re: Attempting to create NSTableView with Single Header
- From: Brent Fulgham <email@hidden>
- Date: Tue, 20 May 2008 22:46:40 -0700
On May 20, 2008, at 8:19 PM, Hamish Allan wrote:
On Wed, May 21, 2008 at 12:11 AM, Brent Fulgham <email@hidden>
wrote:
| My single column header |
| Label 1 | Value 1 |
| Label 2 | Value 2 |
Does anyone have any ideas for how to accomplish this?
How about using a single column, with a data cell that displays both
your label and your value?
This would certainly work, but I was hoping to easily handle making
the 'label' portion of the cell right-justified, and the 'value'
portion left justified. This is trivial with a set of columns, but
I'm not sure how to best deal with setting up the labels to have what
amounts to left and right justified 'tab stops' so the data can appear
properly formatted, especially if the user changes from a fixed-width
font to something else.
Another possibility might be to do something like a custom NSCell that
stores two values in specified-width regions, similar to existing
examples for combination image and text fields.
-Brent
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden