Re: Displaying an NSArray of NSArray's in a Table view
Re: Displaying an NSArray of NSArray's in a Table view
- Subject: Re: Displaying an NSArray of NSArray's in a Table view
- From: Guy English <email@hidden>
- Date: Mon, 13 Dec 2004 13:41:14 -0500
You can subclass NSTableHeaderCell to do what you want. You could also
just call setAlignment: on your cell with NSLeftTextAlignment to have
the headers flush left. I think you can also set this in IB actually.
Guy
On Sun, 12 Dec 2004 14:12:34 -0500, Bruce Truax <email@hidden> wrote:
> Thanks. That did it. My data is displaying properly. Now if there was
> just a row header to make it look more like a spreadsheet. I added the row
> number to the first column as a reference but that does not stay locked to
> the left side of the view.
>
> This is good enough for my needs for now.
>
> Thanks for all of the help.
>
> Bruce
>
> On 12/12/04 1:55 PM, "Jonathan Jackel" <email@hidden> eloquently
>
>
> wrote:
>
> > If you make headerCell an NSTableHeaderCell instead of a generic
> > NSCell, you'll probably get the appearance you desire.
> >
> > Also, you need to release headerCell once it is set as the column's
> > header.
>
> _______________________________________________
> 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
>
_______________________________________________
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