Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView headers



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.