• 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: NSTableView headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView headers


  • Subject: Re: NSTableView headers
  • From: Raleigh Ledet <email@hidden>
  • Date: Tue, 30 Dec 2008 13:32:43 -0800

Donnie,

If you're app is 10.5 and up only, check out the following delegate methods in NSTableView.h

- (NSCell *)tableView:(NSTableView *)tableView dataCellForTableColumn: (NSTableColumn *)tableColumn row:(NSInteger)row
- (BOOL)tableView:(NSTableView *)tableView isGroupRow:(NSInteger)row


Otherwise, you'll have to subclass NSTableView's:
 -(NSRect)frameOfCellAtColumn:(NSInteger)column row:(NSInteger)row
There are various examples of this on the net if you google for it.

-raleigh


On Dec 30, 2008, at 12:44 PM, Donnie Lee wrote:

Hi!

I have 2-column NSTableView and want to make some rows to act as
headers. How can I join columns in some rows to make header's caption
all table long?
_______________________________________________

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

_______________________________________________

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


References: 
 >NSTableView headers (From: "Donnie Lee" <email@hidden>)

  • Prev by Date: Re: A Mac App & helper NSStatusItem - how to share preferences
  • Next by Date: Re: paragraph styles in NSTextView--help
  • Previous by thread: NSTableView headers
  • Next by thread: NSTreeController delete slowness...
  • Index(es):
    • Date
    • Thread