• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Displaying an NSArray of NSArray's in a Table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Displaying an NSArray of NSArray's in a Table view (From: Jonathan Jackel <email@hidden>)
 >Re: Displaying an NSArray of NSArray's in a Table view (From: Bruce Truax <email@hidden>)

  • Prev by Date: Re: Best way to email html?
  • Next by Date: Re: About efficiently reading and writing files...
  • Previous by thread: Re: Displaying an NSArray of NSArray's in a Table view
  • Next by thread: How to get NSOpenPanel on the right level/layer?
  • Index(es):
    • Date
    • Thread