Re: NSTableView headers
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